Table of Contents

Class TypeExtensions

Namespace
IceRpc.Ice.Codec
Assembly
IceRpc.dll

Provides extension methods for Type.

public static class TypeExtensions
Inheritance
TypeExtensions
Inherited Members

Methods

GetCompactIceTypeId(Type)

Retrieves the compact Ice type ID from a type with the attribute CompactIceTypeIdAttribute.

public static int? GetCompactIceTypeId(this Type type)

Parameters

type Type

The type of a class generated by the Ice compiler.

Returns

int?

The compact Ice type ID, or null if type does not carry the CompactIceTypeIdAttribute attribute.

GetIceTypeId(Type)

Retrieves the Ice type ID from a type with the attribute IceTypeIdAttribute.

public static string? GetIceTypeId(this Type type)

Parameters

type Type

The type of a class or interface generated by the Ice compiler.

Returns

string

The Ice type ID, or null if type does not carry the IceTypeIdAttribute attribute.