PostSharpAPI ReferencePost­Sharp.​AspectsType­Identity
Open sandboxFocus

TypeIdentity Class

Wraps a Type or a type name.

Inheritance
System.Object
TypeIdentity
Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
public class TypeIdentity : Object

Properties

Name Description
Type

Gets the wrapped Type, or null it the TypeName property is set.

TypeName

Gets the wrapped type name, or null it the Type property is set.

Methods

Name Description
FromType(Type)

Wraps a Type into a TypeIdentity.

FromTypeName(String)

Wraps a type name into a TypeIdentity.

FromTypeNames(String[])

Wraps an array of type names into an array of TypeIdentity.

FromTypes(Type[])

Wraps an array of Type into an array of TypeIdentity.

ToType()

Converts a TypeIdentity into a System.Type.