LocalDateConverter Class

Summary

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

Syntax

public class LocalDateConverter : ITypeConverter<LocalDate, DateTime>, 
    ITypeConverter<Nullable<LocalDate>, Nullable<DateTime>>, ITypeConverter<DateTime, LocalDate>, 
    ITypeConverter<Nullable<DateTime>, Nullable<LocalDate>>

Attributes

Type Description
PublicAPIAttribute

Constructors

Name Summary
LocalDateConverter()

Methods

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

Extension Methods

See Also

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