C# Class Nuclex.Cloning.Helpers.ClonerHelpers

Contains helper methods for the cloners
Mostra file Open project: junweilee/Nuclex.Cloning

Public Methods

Method Description
GetFieldInfosIncludingBaseClasses ( Type type, BindingFlags bindingFlags ) : System.Reflection.FieldInfo[]

Returns all the fields of a type, working around a weird reflection issue where explicitly declared fields in base classes are returned, but not automatic property backing fields.

Method Details

GetFieldInfosIncludingBaseClasses() public static method

Returns all the fields of a type, working around a weird reflection issue where explicitly declared fields in base classes are returned, but not automatic property backing fields.
public static GetFieldInfosIncludingBaseClasses ( Type type, BindingFlags bindingFlags ) : System.Reflection.FieldInfo[]
type System.Type Type whose fields will be returned
bindingFlags BindingFlags Binding flags to use when querying the fields
return System.Reflection.FieldInfo[]