Struct ConverterTypeCollection.ConverterType
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
A wrapper around Type that ensures a trimmed application will preserve the type's public constructors.
public readonly struct ConverterTypeCollection.ConverterType
- Inherited Members
Constructors
ConverterType(Type)
Initializes a new instance of the ConverterTypeCollection.ConverterType struct.
public ConverterType(Type type)
Parameters
typeTypeThe wrapped type.
Properties
Type
Gets the wrapped type.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type Type { get; }
Property Value
Operators
implicit operator Type(ConverterType)
Implicitly converts a ConverterTypeCollection.ConverterType instance to its underlying Type.
public static implicit operator Type(ConverterTypeCollection.ConverterType type)
Parameters
typeConverterTypeCollection.ConverterTypeThe ConverterTypeCollection.ConverterType instance to convert.
Returns
implicit operator ConverterType(Type)
Implicitly converts a Type to a ConverterTypeCollection.ConverterType.
public static implicit operator ConverterTypeCollection.ConverterType(Type type)
Parameters
typeTypeThe type to convert.
Returns
Remarks
This operator enables seamless conversion from a Type to a ConverterTypeCollection.ConverterType.