JsonProperty Structure

Represents a property in a JsonObject.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
[SerializableAttribute]
public readonly struct JsonProperty : IEquatable<JsonProperty>
Inheritance
Object    ValueType    JsonProperty
Implements
IEquatableJsonProperty

Constructors

JsonProperty Initializes a new instance of the JsonProperty struct.

Properties

Name Gets the name of the property. It can be only for a default JsonProperty instance that was created without the public constructor.
Value Gets the value of the property.

Methods

Equals(JsonProperty) Indicates whether the current JsonProperty instance is equal to another one specified in the other parameter.
Equals(Object) Determines whether the specified object is equal to this instance.
(Overrides ValueTypeEquals(Object))
GetHashCode Returns a hash code for this JsonProperty instance.
(Overrides ValueTypeGetHashCode)
ToString Gets the string representation of this JsonProperty.
(Overrides ValueTypeToString)

Operators

Equality(JsonProperty, JsonProperty) Determines whether two specified JsonProperty instances have the same value.
(KeyValuePairString, JsonValue to JsonProperty) Performs an implicit conversion from KeyValuePairTKey, TValue to JsonProperty.
(ValueTupleString, JsonValue to JsonProperty) Performs an implicit conversion from ValueTupleT1, T2 to JsonProperty.
Inequality(JsonProperty, JsonProperty) Determines whether two specified JsonProperty instances have different values.

See Also