Synced
TypeCacheSnapshot
Section titled “TypeCacheSnapshot”
- Represents an immutable, internally consistent view of discoverable runtime types.
Required contracts
Section titled “Required contracts”API: engine
Inherits: object
Project: Inno.Extensibility.Types
Declaration
Section titled “Declaration”public sealed class Inno.Extensibility.Types.TypeCacheSnapshotRemarks
Section titled “Remarks”A snapshot strongly retains its discovered T:System.Type instances. Callers must not cache an obsolete snapshot or one of its type lists beyond the operation that needs generation consistency, because doing so delays unloading the corresponding collectible assembly load context.
Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Methods | TypeCacheSnapshot.CanCreateInstance | Determines whether the current deployment can construct a type in this exact generation. |
| Methods | TypeCacheSnapshot.ConstructGenericType | Resolves a generic construction belonging to this exact generation. |
| Methods | TypeCacheSnapshot.CreateInstance | Constructs a declared type through this generation’s selected metadata source. |
| Methods | TypeCacheSnapshot.GetAttribute | Reads a single extension attribute without requiring runtime reflection. |
| Methods | TypeCacheSnapshot.GetMetadata | Reads the immutable discovery facts for a declaration in this exact generation. |
| Methods | TypeCacheSnapshot.GetSubTypesOf | Gets all concrete discovered types assignable to T. |
| Methods | TypeCacheSnapshot.GetTypeRef | Gets the reference for a CLR type in this snapshot. |
| Methods | TypeCacheSnapshot.GetTypesImplementing | Gets all concrete discovered types implementing TInterface. |
| Methods | TypeCacheSnapshot.GetTypesWithAttribute | Gets all concrete discovered types marked with TAttribute. |
| Methods | TypeCacheSnapshot.TryGetTypeRef | Tries to get the reference for a CLR type in this snapshot. |
| Properties | TypeCacheSnapshot.types | Gets every type included in this snapshot. |
| Properties | TypeCacheSnapshot.version | Gets the monotonically increasing catalog version. |