IJsonOnSerialized Interface

Definition

Specifies that the type should have its OnSerialized() method called after serialization occurs.

C#
public interface IJsonOnSerialized

Remarks

This behavior is only supported on types representing JSON objects. Types that have a custom converter or represent either collections or primitive values do not support this behavior.

Methods

OnSerialized()

The method that is called after serialization.

Applies to

Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)