C# Class Transit.Framework.TypeExtensions

Datei anzeigen Open project: Katalyst6/CSL.TransitAddonMod

Public Methods

Method Description
GetAllFieldsFromType ( this type ) : IEnumerable

Returns all fields from this type, including static, private and inherited private fields.

GetFieldByName ( this type, string name ) : FieldInfo

Searches for the field identified by the given name, regardless of type or accessibility. If it exists, it's returned.

Method Details

GetAllFieldsFromType() public static method

Returns all fields from this type, including static, private and inherited private fields.
public static GetAllFieldsFromType ( this type ) : IEnumerable
type this
return IEnumerable

GetFieldByName() public static method

Searches for the field identified by the given name, regardless of type or accessibility. If it exists, it's returned.
public static GetFieldByName ( this type, string name ) : FieldInfo
type this
name string
return System.Reflection.FieldInfo