BindingFlags
Specifies flags that control binding and the way in which the search for members
and types is conducted by reflection.
DeclaredOnly = 2
Specifies that only members declared at the level of the supplied type's hierarchy
should be considered. Inherited members are not considered.
Default = 0
Specifies no binding flag.
FlattenHierarchy = 64
Specifies that public and protected static members up the hierarchy should be
returned. Private static members in inherited classes are not returned. Static
members include fields, methods, events, and properties. Nested types are not
returned.
Instance = 4
Specifies that instance members are to be included in the search.
NonPublic = 32
Specifies that non-public members are to be included in the search.
Public = 16
Specifies that public members are to be included in the search.
Static = 8
Specifies that static members are to be included in the search.