RuntimeReflectionExtensions.GetRuntimeFields(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a collection that represents all the fields defined on a specified type.
public:
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IEnumerable<System::Reflection::FieldInfo ^> ^ GetRuntimeFields(Type ^ type);
public static System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo> GetRuntimeFields (this Type type);
static member GetRuntimeFields : Type -> seq<System.Reflection.FieldInfo>
<Extension()>
Public Function GetRuntimeFields (type As Type) As IEnumerable(Of FieldInfo)
Parameters
- type
- Type
The type that contains the fields.
Returns
A collection of fields for the specified type.
Exceptions
type
is null
.
Remarks
This method returns all fields that are defined on the specified type, including inherited, non-public, instance, and static fields.
Applies to
See also
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.