Synced
SerializationContext.GetRequired
Section titled “SerializationContext.GetRequired”
- Resolves a value registered under the exact context contract type.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Serialization
Declaration
Section titled “Declaration”public TContext Inno.Core.Serialization.SerializationContext.GetRequired<TContext>() where TContext : classType parameters
Section titled “Type parameters”Type parameter TContext: The exact context contract type.
Returns
Section titled “Returns”The registered context value.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when the requested context was not registered.