Table of Contents

USGReflection Class

public static class USGReflection
Inheritance
USGReflection

Fields

PUBLIC_INSTANCE_FIELD_OR_PROPERTY

Methods

GetAllPublicInstanceFieldAndProperty(Type, params string[])

Note that constructor (.ctor) is always ignored.

GetEnumNamesAndValuesAsDictionary<TValue>(Type)

Enum names and values as a dictionary.

GetEnumNamesAndValuesAsTuple<TValue>(Type)

Enum names and values as a tuple.

TryGetFieldOrPropertyType(MemberInfo, out Type)

Try get value type of field or property.