Skip to content

trygetattribute

eisclimber edited this page Apr 4, 2026 · 1 revision

AttributeHelpers.TryGetAttribute(MemberInfo,T)

Method in AttributeHelpers

Summary

Returns the attribute as out-parameter and returns true if the attribute was found.

public static bool TryGetAttribute<T>(MemberInfo memberInfo, out T attribute)
    where T : Attribute

Parameters

Name Description
System.Reflection.MemberInfo memberInfo MemberInfo to retrieve the attribute from.
T attribute Parameter to be set to the reference of the attribute (or null if it does not exits)

Type Parameters

Name Description
T Attribute to be retrieved.

Returns

If the attribute was found.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally