Table of Contents

Class FauxType

Namespace
Dynamitey.DynamicObjects
Assembly
Dynamitey.Community.dll

A Fake Type

public abstract class FauxType
Inheritance
FauxType
Derived
Inherited Members

Constructors

FauxType()

protected FauxType()

Methods

ContainsType(Type)

Determines whether the specified type contains the type.

public virtual bool ContainsType(Type type)

Parameters

type Type

The type.

Returns

bool

true if the specified type contains type; otherwise, false.

FromType(Type)

Named alternate for the implicit conversion from Type above, for callers in a language that cannot consume operator overloads.

public static FauxType FromType(Type type)

Parameters

type Type

The type.

Returns

FauxType

A RealType wrapping type.

GetContainedTypes()

Gets the contained types.

public abstract Type[] GetContainedTypes()

Returns

Type[]

GetMember(string)

Gets the members.

[RequiresUnreferencedCode("A FauxType wrapping a real Type (RealType) resolves this by reflecting over the target type's members by name; trimming can remove the member being resolved. Overrides on a data-only FauxType (PropretySpecType, or an AggreType composed only of those) don't need this themselves, but must match the abstract declaration.")]
public abstract IEnumerable<MemberInfo> GetMember(string binderName)

Parameters

binderName string

Name of the binder.

Returns

IEnumerable<MemberInfo>

GetMemberNames()

Gets the names of every member this type reports.

[RequiresUnreferencedCode("A FauxType wrapping a real Type (RealType) resolves this by reflecting over the target type's members; trimming can remove members it would otherwise report. Overrides on a data-only FauxType (PropretySpecType, or an AggreType composed only of those) don't need this themselves, but must match the abstract declaration.")]
public abstract IEnumerable<string> GetMemberNames()

Returns

IEnumerable<string>

The member names. Implementations may return duplicates only if the underlying source does; AggreType removes them across its children.

Operators

implicit operator FauxType(Type)

Converts a real Type into a FauxType.

public static implicit operator FauxType(Type type)

Parameters

type Type

The type.

Returns

FauxType