Table of Contents

Method FindFieldDeep

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

FindFieldDeep(TypeDefinition, string)

Find a field for a given name recursively (including the passed type's base types).
public static FieldDefinition? FindFieldDeep(this TypeDefinition type, string name)

Parameters

type TypeDefinition
The type to search in.
name string
The field name.

Returns

FieldDefinition
The first matching field or null.