Table of Contents

Class IdentityConverter

Namespace
Rinku.Mapping
Assembly
Rinku.dll

Leaves a value unchanged when the source and target types are compatible.

public class IdentityConverter : ITypeConverter
Inheritance
IdentityConverter
Implements
Inherited Members
Extension Methods

Constructors

IdentityConverter(Type)

Leaves a value unchanged when the source and target types are compatible.

public IdentityConverter(Type type)

Parameters

type Type

Properties

OutputType

The type produced by the conversion.

public Type OutputType { get; }

Property Value

Type

Methods

EmitConversion(Generator, Type)

Converts the current value to OutputType.

public void EmitConversion(Generator generator, Type sourceType)

Parameters

generator Generator
sourceType Type