Uredi

Deli z drugimi prek


JsonNamingPolicy Class

Definition

Determines the naming policy used to convert a string-based name to another format, such as a camel-casing format.

public ref class JsonNamingPolicy abstract
public abstract class JsonNamingPolicy
type JsonNamingPolicy = class
Public MustInherit Class JsonNamingPolicy
Inheritance
JsonNamingPolicy

Remarks

For more information, see How to customize property names and values with System.Text.Json.

Constructors

JsonNamingPolicy()

Initializes a new instance of JsonNamingPolicy.

Properties

CamelCase

Gets the naming policy for camel-casing.

KebabCaseLower

Gets the naming policy for lowercase kebab-casing.

KebabCaseUpper

Gets the naming policy for uppercase kebab-casing.

SnakeCaseLower

Gets the naming policy for lowercase snake-casing.

SnakeCaseUpper

Gets the naming policy for uppercase snake-casing.

Methods

ConvertName(String)

When overridden in a derived class, converts the specified name according to the policy.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to