Interface IFieldInfoIntrospectionProvider
Interface representing a reflection provider used to introspect System.Reflection.FieldInfo objects.
Inherited Members
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IFieldInfoIntrospectionProvider : IMemberInfoIntrospectionProvider
Methods
GetAttributes(FieldInfo)
Gets the attributes associated with the specified field.
Declaration
FieldAttributes GetAttributes(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to get the attributes for. |
Returns
Type | Description |
---|---|
System.Reflection.FieldAttributes | The attributes associated with the specified field. |
GetFieldHandle(FieldInfo)
Gets a System.RuntimeFieldHandle, which is a handle to the internal metadata representation of a field.
Declaration
RuntimeFieldHandle GetFieldHandle(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to get the runtime handle for. |
Returns
Type | Description |
---|---|
System.RuntimeFieldHandle | A handle to the internal metadata representation of a field. |
GetFieldType(FieldInfo)
Gets the type of the field.
Declaration
Type GetFieldType(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to get the type for. |
Returns
Type | Description |
---|---|
System.Type | The type of the field. |
GetOptionalCustomModifiers(FieldInfo)
Returns an array of types representing the optional custom modifiers of the field.
Declaration
IReadOnlyList<Type> GetOptionalCustomModifiers(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to get the modifiers for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Type> | An array of System.Type objects that identify the optional custom modifiers of the specified |
GetRequiredCustomModifiers(FieldInfo)
Returns an array of types representing the required custom modifiers of the field.
Declaration
IReadOnlyList<Type> GetRequiredCustomModifiers(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to get the modifiers for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Type> | An array of System.Type objects that identify the required custom modifiers of the specified |
IsSecurityCritical(FieldInfo)
Gets a value that indicates whether the specified field
is security-critical or security-safe-critical at the current trust level, and therefore can perform critical operations.
Declaration
bool IsSecurityCritical(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsSecuritySafeCritical(FieldInfo)
Gets a value that indicates whether the specified field
is security-safe-critical at the current trust level; that is, whether it can perform critical operations and can be accessed by transparent code.
Declaration
bool IsSecuritySafeCritical(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsSecurityTransparent(FieldInfo)
Gets a value that indicates whether the specified field
is transparent at the current trust level, and therefore cannot perform critical operations.
Declaration
bool IsSecurityTransparent(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |