Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Returns a new context containing the supplied value under its declared context type.

API: scripting
Project: Inno.Core.Serialization
Scope: Runtime

public InnoEngine.Serialization.SerializationContext InnoEngine.Serialization.SerializationContext.With<TContext>(TContext value) where TContext : class

Type parameter TContext: The exact context contract type.

Parameter value: The context value to register.

A new context containing the registered value.

Exception T:System.ArgumentNullException: Thrown when value is null.