Class IdentityConverter
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
typeType
Properties
OutputType
The type produced by the conversion.
public Type OutputType { get; }
Property Value
Methods
EmitConversion(Generator, Type)
Converts the current value to OutputType.
public void EmitConversion(Generator generator, Type sourceType)