RuntimeReflectionExtensions.GetRuntimeFields(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)

参数

type
Type

包含字段的类型。

返回

IEnumerable<FieldInfo>

指定类型的字段集合。

例外

typenull

注解

此方法返回在指定类型上定义的所有字段,包括继承的、非公共的、实例和静态字段。

适用于

另请参阅