Table of Contents

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

type Type

The wrapped type.

Properties

Type

Gets the wrapped type.

[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type Type { get; }

Property Value

Type

Operators

implicit operator Type(ConverterType)

Implicitly converts a ConverterTypeCollection.ConverterType instance to its underlying Type.

public static implicit operator Type(ConverterTypeCollection.ConverterType type)

Parameters

type ConverterTypeCollection.ConverterType

The ConverterTypeCollection.ConverterType instance to convert.

Returns

Type

implicit operator ConverterType(Type)

Implicitly converts a Type to a ConverterTypeCollection.ConverterType.

public static implicit operator ConverterTypeCollection.ConverterType(Type type)

Parameters

type Type

The type to convert.

Returns

ConverterTypeCollection.ConverterType

Remarks

This operator enables seamless conversion from a Type to a ConverterTypeCollection.ConverterType.