JsonElementForBooleanFalseSchema
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElementForBooleanFalseSchema.cs
Represents a placeholder for the false boolean schema which disallows any value.
public readonly struct JsonElementForBooleanFalseSchema : IJsonElement<JsonElementForBooleanFalseSchema>, IJsonElement
Implements
IJsonElement<JsonElementForBooleanFalseSchema>, IJsonElement
Properties
| Property | Type | Description |
|---|---|---|
| ValueKind | JsonValueKind |
The JsonValueKind that the value is. |
Methods
| Method | Description |
|---|---|
CreateDocument static |
Creates a JSON document containing the specified integer value. |
| Equals | Determines whether the specified object is equal to the current instance. |
| EvaluateSchema(IJsonSchemaResultsCollector) | Evaluates this element against the boolean false schema. |
From(ref T) static |
Creates a new JsonElementForBooleanFalseSchema from the specified JSON element instance. |
| GetHashCode() | Gets the hash code for the current instance. |
ParseValue static |
Parses UTF8-encoded text representing a single JSON value into a JsonElement. |
| ToString() | Gets a string representation for the current value appropriate to the value type. |
TryParseValue(ref Utf8JsonReader, ref Nullable<JsonElementForBooleanFalseSchema>) static |
Attempts to parse one JSON value (including objects or arrays) from the provided reader. |
| WriteTo(Utf8JsonWriter) | Write the element into the provided writer as a JSON value. |
Operators
| Operator | Description |
|---|---|
| Equality | Determines whether two JsonElementForBooleanFalseSchema instances are equal. |
| implicit operator int(JsonElementForBooleanFalseSchema) | Implicitly converts a JsonElementForBooleanFalseSchema to an Int32. |
| Inequality | Determines whether two JsonElementForBooleanFalseSchema instances are not equal. |
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue