Synced
TypeCacheSnapshot.GetAttribute
Section titled “TypeCacheSnapshot.GetAttribute”
- Reads a single extension attribute without requiring runtime reflection.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Extensibility.Types
Declaration
Section titled “Declaration”public TAttribute? Inno.Extensibility.Types.TypeCacheSnapshot.GetAttribute<TAttribute>(Inno.Extensibility.Types.TypeRef type, bool inherit = true) where TAttribute : System.AttributeType parameters
Section titled “Type parameters”Type parameter TAttribute: The attribute contract requested by the caller.
Parameters
Section titled “Parameters”Parameter type: A declaration in this snapshot.
Parameter inherit: Whether effective inherited attributes participate.
Returns
Section titled “Returns”The matching attribute, or null when absent; duplicate singleton attributes throw.