MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ReflectionReflection­HelperGet­Property
Open sandboxFocus

ReflectionHelper.GetProperty Method

GetProperty(Type, MethodInfo, MethodInfo)

Declaration
public static PropertyInfo GetProperty(Type declaringType, MethodInfo getter, MethodInfo setter)
Parameters
Type Name Description
System.Type declaringType
System.Reflection.MethodInfo getter
System.Reflection.MethodInfo setter
Returns
Type Description
System.Reflection.PropertyInfo

GetProperty(Type, MethodInfo, MethodInfo, Boolean)

Declaration
public static PropertyInfo GetProperty(Type declaringType, MethodInfo getter, MethodInfo setter, bool throwOnMissingMember)
Parameters
Type Name Description
System.Type declaringType
System.Reflection.MethodInfo getter
System.Reflection.MethodInfo setter
System.Boolean throwOnMissingMember
Returns
Type Description
System.Reflection.PropertyInfo