<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />

JConstructor

public class JConstructor : JContainer
Represents a JSON constructor.
public string Name { get; set; }

Gets or sets the name of this constructor.

public JConstructor()

Initializes a new instance of the JConstructor class.

public JConstructor(JConstructor other)

Initializes a new instance of the JConstructor class from another JConstructor object.

public JConstructor(string name, object[] content)

Initializes a new instance of the JConstructor class with the specified name and content.

public JConstructor(string name, object content)

Initializes a new instance of the JConstructor class with the specified name and content.

public JConstructor(string name)

Initializes a new instance of the JConstructor class with the specified name.

public static JConstructor Load(JsonReader reader)

Loads a JConstructor from a JsonReader.

public static JConstructor Load(JsonReader reader, JsonLoadSettings settings)

Loads a JConstructor from a JsonReader.

public static Task<JConstructor> LoadAsync(JsonReader reader, CancellationToken cancellationToken = default)

Asynchronously loads a JConstructor from a JsonReader.

public static Task<JConstructor> LoadAsync(JsonReader reader, JsonLoadSettings settings, CancellationToken cancellationToken = default)

Asynchronously loads a JConstructor from a JsonReader.