Method FindFieldDeep
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
typeTypeDefinition- The type to search in.
namestring- The field name.
Returns
- FieldDefinition
- The first matching field or null.