Synced
SerializationContext.With
Section titled “SerializationContext.With”
- Returns a new context containing the supplied value under its declared context type.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Serialization
Declaration
Section titled “Declaration”public Inno.Core.Serialization.SerializationContext Inno.Core.Serialization.SerializationContext.With<TContext>(TContext value) where TContext : classType parameters
Section titled “Type parameters”Type parameter TContext: The exact context contract type.
Parameters
Section titled “Parameters”Parameter value: The context value to register.
Returns
Section titled “Returns”A new context containing the registered value.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when value is null.