DurationConverter Class

Summary

DurationConverter. Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2
Assembly
Rocket.Surgery.Extensions.AutoMapper.dll
Namespace
Rocket.Surgery.Extensions.AutoMapper.Converters
Interfaces
  • ITypeConverter<Duration, TimeSpan>
  • ITypeConverter<Nullable<Duration>, Nullable<TimeSpan>>
  • ITypeConverter<TimeSpan, Duration>
  • ITypeConverter<Nullable<TimeSpan>, Nullable<Duration>>
  • ITypeConverter<Duration, long>
  • ITypeConverter<Nullable<Duration>, Nullable<long>>
  • ITypeConverter<long, Duration>
  • ITypeConverter<Nullable<long>, Nullable<Duration>>
  • ITypeConverter<Duration, int>
  • ITypeConverter<Nullable<Duration>, Nullable<int>>
  • ITypeConverter<int, Duration>
  • ITypeConverter<Nullable<int>, Nullable<Duration>>
  • ITypeConverter<Duration, double>
  • ITypeConverter<Nullable<Duration>, Nullable<double>>
  • ITypeConverter<double, Duration>
  • ITypeConverter<Nullable<double>, Nullable<Duration>>
  • ITypeConverter<Duration, Decimal>
  • ITypeConverter<Nullable<Duration>, Nullable<Decimal>>
  • ITypeConverter<Decimal, Duration>
  • ITypeConverter<Nullable<Decimal>, Nullable<Duration>>
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["ITypeConverter<Duration, TimeSpan>"] Type-.->Interface1["ITypeConverter<Nullable<Duration>, Nullable<TimeSpan>>"] Type-.->Interface2["ITypeConverter<TimeSpan, Duration>"] Type-.->Interface3["ITypeConverter<Nullable<TimeSpan>, Nullable<Duration>>"] Type-.->Interface4["ITypeConverter<Duration, long>"] Type-.->Interface5["ITypeConverter<Nullable<Duration>, Nullable<long>>"] Type-.->Interface6["ITypeConverter<long, Duration>"] Type-.->Interface7["ITypeConverter<Nullable<long>, Nullable<Duration>>"] Type-.->Interface8["ITypeConverter<Duration, int>"] Type-.->Interface9["ITypeConverter<Nullable<Duration>, Nullable<int>>"] Type-.->Interface10["ITypeConverter<int, Duration>"] Type-.->Interface11["ITypeConverter<Nullable<int>, Nullable<Duration>>"] Type-.->Interface12["ITypeConverter<Duration, double>"] Type-.->Interface13["ITypeConverter<Nullable<Duration>, Nullable<double>>"] Type-.->Interface14["ITypeConverter<double, Duration>"] Type-.->Interface15["ITypeConverter<Nullable<double>, Nullable<Duration>>"] Type-.->Interface16["ITypeConverter<Duration, Decimal>"] Type-.->Interface17["ITypeConverter<Nullable<Duration>, Nullable<Decimal>>"] Type-.->Interface18["ITypeConverter<Decimal, Duration>"] Type-.->Interface19["ITypeConverter<Nullable<Decimal>, Nullable<Duration>>"] Type["DurationConverter"] class Type type-node

Syntax

public class DurationConverter : ITypeConverter<Duration, TimeSpan>, 
    ITypeConverter<Nullable<Duration>, Nullable<TimeSpan>>, ITypeConverter<TimeSpan, Duration>, 
    ITypeConverter<Nullable<TimeSpan>, Nullable<Duration>>, ITypeConverter<Duration, long>, 
    ITypeConverter<Nullable<Duration>, Nullable<long>>, ITypeConverter<long, Duration>, 
    ITypeConverter<Nullable<long>, Nullable<Duration>>, ITypeConverter<Duration, int>, 
    ITypeConverter<Nullable<Duration>, Nullable<int>>, ITypeConverter<int, Duration>, 
    ITypeConverter<Nullable<int>, Nullable<Duration>>, ITypeConverter<Duration, double>, 
    ITypeConverter<Nullable<Duration>, Nullable<double>>, ITypeConverter<double, Duration>, 
    ITypeConverter<Nullable<double>, Nullable<Duration>>, ITypeConverter<Duration, Decimal>, 
    ITypeConverter<Nullable<Duration>, Nullable<Decimal>>, ITypeConverter<Decimal, Duration>, 
    ITypeConverter<Nullable<Decimal>, Nullable<Duration>>

Attributes

Type Description
PublicAPIAttribute

Constructors

Name Summary
DurationConverter()

Methods

Name Value Summary
Convert(Decimal, Duration, ResolutionContext) Duration
Performs conversion from source to destination type
Convert(double, Duration, ResolutionContext) Duration
Performs conversion from source to destination type
Convert(Duration, Decimal, ResolutionContext) Decimal
Performs conversion from source to destination type
Convert(Duration, double, ResolutionContext) double
Performs conversion from source to destination type
Convert(Duration, int, ResolutionContext) int
Performs conversion from source to destination type
Convert(Duration, long, ResolutionContext) long
Performs conversion from source to destination type
Convert(Duration, TimeSpan, ResolutionContext) TimeSpan
Performs conversion from source to destination type
Convert(int, Duration, ResolutionContext) Duration
Performs conversion from source to destination type
Convert(long, Duration, ResolutionContext) Duration
Performs conversion from source to destination type
Convert(Nullable<Decimal>, Nullable<Duration>, ResolutionContext) Nullable<Duration>
Performs conversion from source to destination type
Convert(Nullable<double>, Nullable<Duration>, ResolutionContext) Nullable<Duration>
Performs conversion from source to destination type
Convert(Nullable<Duration>, Nullable<Decimal>, ResolutionContext) Nullable<Decimal>
Performs conversion from source to destination type
Convert(Nullable<Duration>, Nullable<double>, ResolutionContext) Nullable<double>
Performs conversion from source to destination type
Convert(Nullable<Duration>, Nullable<int>, ResolutionContext) Nullable<int>
Performs conversion from source to destination type
Convert(Nullable<Duration>, Nullable<long>, ResolutionContext) Nullable<long>
Performs conversion from source to destination type
Convert(Nullable<Duration>, Nullable<TimeSpan>, ResolutionContext) Nullable<TimeSpan>
Performs conversion from source to destination type
Convert(Nullable<int>, Nullable<Duration>, ResolutionContext) Nullable<Duration>
Performs conversion from source to destination type
Convert(Nullable<long>, Nullable<Duration>, ResolutionContext) Nullable<Duration>
Performs conversion from source to destination type
Convert(Nullable<TimeSpan>, Nullable<Duration>, ResolutionContext) Nullable<Duration>
Performs conversion from source to destination type
Convert(TimeSpan, Duration, ResolutionContext) Duration
Performs conversion from source to destination type

Extension Methods

See Also

  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2
  • AutoMapper.ITypeConverter`2