Method FindProperty
FindProperty(TypeDefinition, string)
Find a property for a given name.
public static PropertyDefinition? FindProperty(this TypeDefinition type, string name)
Parameters
type
TypeDefinition- The type to search in.
name
string- The property name.
Returns
- PropertyDefinition
- The first matching property or null.