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

API: engine
Project: Inno.Core.Serialization

public Inno.Core.Serialization.SerializationContext Inno.Core.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.