JsonEncodedPropertyName
Namespace: SnowBank.Data.Json · class
Implements: IEquatable<JsonEncodedPropertyName>, IEquatable<string>, IFormattable, IEquatable<ReadOnlySpan<char>>, IEquatable<ReadOnlyMemory<char>>
Cache for the various encoded forms of a JSON property name
Constructors
JsonEncodedPropertyName
JsonEncodedPropertyName(string value)
Constructs an instance from the specified property name
Methods
Equals
bool Equals(object obj)
bool Equals(JsonEncodedPropertyName other)
bool Equals(string other)
bool Equals(ReadOnlySpan<char> other)
bool Equals(ReadOnlyMemory<char> other)
GetHashCode
int GetHashCode()
ToString
string ToString()
string ToString(string format, IFormatProvider formatProvider)
Fields
JavaScriptLiteral
readonly string JavaScriptLiteral
Name encoded as the field name of a Javascript Object (ex: FooBar (no quotes) or 'hello\'world"!!!' (with quotes))
Includes the single quotes if required
JavaScriptLiteralCamelCased
readonly string JavaScriptLiteralCamelCased
Camel-cased name encoded as the field name of a Javascript Object (ex: fooBar (no quotes) or 'hello\'world"!!!' (with quotes))
Includes the single quotes if required
JsonLiteral
readonly string JsonLiteral
Name encoded as the field name of a JSON Object (ex: "FooBar" or "hello'world\"!!!")
Includes the double-quotes
JsonLiteralCamelCased
readonly string JsonLiteralCamelCased
Camel-cased name encoded as the field name of a JSON Object (ex: "fooBar" or "hello'world\"!!!")
Includes the double-quotes
Value
readonly string Value
Original non-encoded name of the property (ex: FooBar or hello'world"!!!)
ValueCamelCased
readonly string ValueCamelCased
Camel-cased non-encoded name of the property (ex: fooBar or hello'world"!!!)