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
graph BT Type-->Base0["Object"] Type-.->Interface0["ITypeConverter<Instant, DateTime>"] Type-.->Interface1["ITypeConverter<Nullable<Instant>, Nullable<DateTime>>"] Type-.->Interface2["ITypeConverter<Instant, DateTimeOffset>"] Type-.->Interface3["ITypeConverter<Nullable<Instant>, Nullable<DateTimeOffset>>"] Type-.->Interface4["ITypeConverter<DateTime, Instant>"] Type-.->Interface5["ITypeConverter<Nullable<DateTime>, Nullable<Instant>>"] Type-.->Interface6["ITypeConverter<DateTimeOffset, Instant>"] Type-.->Interface7["ITypeConverter<Nullable<DateTimeOffset>, Nullable<Instant>>"] Type["InstantConverter"] class Type type-node

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