InstantConverter Class

Summary

InstantConverter. 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<Instant, DateTime>
  • ITypeConverter<Nullable<Instant>, Nullable<DateTime>>
  • ITypeConverter<Instant, DateTimeOffset>
  • ITypeConverter<Nullable<Instant>, Nullable<DateTimeOffset>>
  • ITypeConverter<DateTime, Instant>
  • ITypeConverter<Nullable<DateTime>, Nullable<Instant>>
  • ITypeConverter<DateTimeOffset, Instant>
  • ITypeConverter<Nullable<DateTimeOffset>, Nullable<Instant>>
Base Types
  • Object
InstantConverter
Object
ITypeConverter
ITypeConverter, Nullable>
ITypeConverter
ITypeConverter, Nullable>
ITypeConverter
ITypeConverter, Nullable>
ITypeConverter
ITypeConverter, Nullable>

Syntax

public class InstantConverter : ITypeConverter<Instant, DateTime>, 
    ITypeConverter<Nullable<Instant>, Nullable<DateTime>>, ITypeConverter<Instant, DateTimeOffset>, 
    ITypeConverter<Nullable<Instant>, Nullable<DateTimeOffset>>, ITypeConverter<DateTime, Instant>, 
    ITypeConverter<Nullable<DateTime>, Nullable<Instant>>, ITypeConverter<DateTimeOffset, Instant>, 
    ITypeConverter<Nullable<DateTimeOffset>, Nullable<Instant>>

Attributes

Type Description
PublicAPIAttribute

Constructors

Name Summary
InstantConverter()

Methods

Name Value Summary
Convert(DateTime, Instant, ResolutionContext) Instant
Performs conversion from source to destination type
Convert(DateTimeOffset, Instant, ResolutionContext) Instant
Performs conversion from source to destination type
Convert(Instant, DateTime, ResolutionContext) DateTime
Performs conversion from source to destination type
Convert(Instant, DateTimeOffset, ResolutionContext) DateTimeOffset
Performs conversion from source to destination type
Convert(Nullable<DateTime>, Nullable<Instant>, ResolutionContext) Nullable<Instant>
Performs conversion from source to destination type
Convert(Nullable<DateTimeOffset>, Nullable<Instant>, ResolutionContext) Nullable<Instant>
Performs conversion from source to destination type
Convert(Nullable<Instant>, Nullable<DateTime>, ResolutionContext) Nullable<DateTime>
Performs conversion from source to destination type
Convert(Nullable<Instant>, Nullable<DateTimeOffset>, ResolutionContext) Nullable<DateTimeOffset>
Performs conversion from source to destination type

Extension Methods

See Also

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