Class TypeInfo

Namespace
Elegy.Common.Reflection
Assembly
Elegy.Common.dll

Caches a bunch of metadata about a given datatype.

public class TypeInfo
Inheritance
TypeInfo
Inherited Members

Constructors

TypeInfo(Type)

Gathers all type information from the given type.

public TypeInfo(Type type)

Parameters

type Type

Properties

Attributes

The attributes this type has.

public IReadOnlyList<Attribute> Attributes { get; }

Property Value

IReadOnlyList<Attribute>

Methods

This type's methods.

public IReadOnlyList<MethodWrapper> Methods { get; }

Property Value

IReadOnlyList<MethodWrapper>

Properties

This type's properties.

public IReadOnlyList<PropertyWrapper> Properties { get; }

Property Value

IReadOnlyList<PropertyWrapper>

Methods

From<T>()

Gathers all type information from T.

public static TypeInfo From<T>()

Returns

TypeInfo

Type Parameters

T