Click or drag to resize

TypeExtensionsGetPropertyForCustomAttributesT Method

[This is preliminary documentation and is subject to change.]

Attempts to find a property on type typeForJob that has an attribute of type T defined.

Namespace:  CSInfrastructure.Extensions
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static PropertyInfo GetPropertyForCustomAttributes<T>(
	this Type typeForJob
)
where T : Attribute

Parameters

typeForJob
Type: SystemType
The type to inspect

Type Parameters

T
The type of Attribute to find

Return Value

Type: PropertyInfo
PropertyInfo of the first property found that has the requested attribute

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also