Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Type­Identity Class

TypeIdentity Class

Wraps a Type or a type name.
Inheritance Hierarchy
System.Object
  PostSharp.Aspects.TypeIdentity

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public class TypeIdentity

The TypeIdentity type exposes the following members.

Properties
  NameDescription
Public propertyType
Gets the wrapped Type, or null it the TypeName property is set.
Public propertyTypeName
Gets the wrapped type name, or null it the Type property is set.
Methods
  NameDescription
Public methodStatic memberFromType
Wraps a Type into a TypeIdentity.
Public methodStatic memberFromTypeName
Wraps a type name into a TypeIdentity.
Public methodStatic memberFromTypeNames
Wraps an array of type names into an array of TypeIdentity.
Public methodStatic memberFromTypes
Wraps an array of Type into an array of TypeIdentity.
Public methodToType
Converts a TypeIdentity into a Type.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also