OffsetConverter Class

Summary

OffsetConverter. Implements the AutoMapper.ITypeConverter`2 Implements the AutoMapper.ITypeConverter`2
Assembly
Rocket.Surgery.Extensions.AutoMapper.dll
Namespace
Rocket.Surgery.Extensions.AutoMapper.Converters
Interfaces
  • ITypeConverter<Offset, TimeSpan>
  • ITypeConverter<Nullable<Offset>, Nullable<TimeSpan>>
  • ITypeConverter<TimeSpan, Offset>
  • ITypeConverter<Nullable<TimeSpan>, Nullable<Offset>>
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["ITypeConverter<Offset, TimeSpan>"] Type-.->Interface1["ITypeConverter<Nullable<Offset>, Nullable<TimeSpan>>"] Type-.->Interface2["ITypeConverter<TimeSpan, Offset>"] Type-.->Interface3["ITypeConverter<Nullable<TimeSpan>, Nullable<Offset>>"] Type["OffsetConverter"] class Type type-node

Syntax

public class OffsetConverter : ITypeConverter<Offset, TimeSpan>, 
    ITypeConverter<Nullable<Offset>, Nullable<TimeSpan>>, ITypeConverter<TimeSpan, Offset>, 
    ITypeConverter<Nullable<TimeSpan>, Nullable<Offset>>

Attributes

Type Description
PublicAPIAttribute

Constructors

Name Summary
OffsetConverter()

Methods

Name Value Summary
Convert(Nullable<Offset>, Nullable<TimeSpan>, ResolutionContext) Nullable<TimeSpan>
Performs conversion from source to destination type
Convert(Nullable<TimeSpan>, Nullable<Offset>, ResolutionContext) Nullable<Offset>
Performs conversion from source to destination type
Convert(Offset, TimeSpan, ResolutionContext) TimeSpan
Performs conversion from source to destination type
Convert(TimeSpan, Offset, ResolutionContext) Offset
Performs conversion from source to destination type

Extension Methods

See Also

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