ExtensionsFactory.RegisterExtension

ExtensionsFactory.RegisterExtension<TParent,TExtension> method

Registers a new extensions to be used globally.

public static void RegisterExtension<TParent, TExtension>(string persistentName)
    where TParent : JsonSerializable
    where TExtension : JsonSerializable
ParameterDescription
TParentThe parent type to which this extension is attached.
TExtensionThe extension type.
persistentNameThe extension name.

Remarks

The persistentName is the value used for serialization

See Also