ComplexValueBuilder.StartProperty Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| StartProperty(ReadOnlySpan<byte>, bool, bool) | Add a property name to the current object. |
| StartProperty(ReadOnlySpan<char>) | Add a property name to the current object. |
| StartProperty(string) | Add a property name to the current object. |
StartProperty(ReadOnlySpan<byte>, bool, bool)
Source: ComplexValueBuilder.cs
Add a property name to the current object.
public ComplexValueBuilder.ComplexValueHandle StartProperty(ReadOnlySpan<byte> stringValue, bool escape, bool ifNotEscapeRequiresUenscaping)
Parameters
| Name | Type | Description |
|---|---|---|
stringValue |
ReadOnlySpan<byte> |
|
escape |
bool |
Indicates whether to escape the property name. |
ifNotEscapeRequiresUenscaping |
bool |
Indicates whether the property name needs unescaping if it is not to be escaped. |
Returns
ComplexValueBuilder.ComplexValueHandle
The handle for the property.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
StartProperty(ReadOnlySpan<char>)
Source: ComplexValueBuilder.cs
Add a property name to the current object.
public ComplexValueBuilder.ComplexValueHandle StartProperty(ReadOnlySpan<char> propertyName)
Parameters
| Name | Type | Description |
|---|---|---|
propertyName |
ReadOnlySpan<char> |
The property name as a character span. |
Returns
ComplexValueBuilder.ComplexValueHandle
The handle for the property.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
StartProperty(string)
Source: ComplexValueBuilder.cs
Add a property name to the current object.
public ComplexValueBuilder.ComplexValueHandle StartProperty(string propertyName)
Parameters
| Name | Type | Description |
|---|---|---|
propertyName |
string |
The property name. |
Returns
ComplexValueBuilder.ComplexValueHandle
The handle for the property.
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