MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ReflectionReflection­SearchGet­Members­Of­Type
Open sandboxFocus

ReflectionSearch.GetMembersOfType Method

GetMembersOfType(Type)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

Declaration
public static MemberTypeCodeReference[] GetMembersOfType(Type memberType)
Parameters
Type Name Description
System.Type memberType
Returns
Type Description
MemberTypeCodeReference[]
See Also

GetMembersOfType(Type, ReflectionSearchOptions)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

Declaration
public static MemberTypeCodeReference[] GetMembersOfType(Type memberType, ReflectionSearchOptions options)
Parameters
Type Name Description
System.Type memberType
ReflectionSearchOptions options
Returns
Type Description
MemberTypeCodeReference[]
See Also