Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Reads a single extension attribute without requiring runtime reflection.

API: engine
Project: Inno.Extensibility.Types

public TAttribute? Inno.Extensibility.Types.TypeCacheSnapshot.GetAttribute<TAttribute>(Inno.Extensibility.Types.TypeRef type, bool inherit = true) where TAttribute : System.Attribute

Type parameter TAttribute: The attribute contract requested by the caller.

Parameter type: A declaration in this snapshot.

Parameter inherit: Whether effective inherited attributes participate.

The matching attribute, or null when absent; duplicate singleton attributes throw.