Table of Contents

Struct OptionalString

Namespace
Honua.Sdk.Admin.Models
Assembly
Honua.Sdk.Admin.dll

Distinguishes an omitted string from an explicitly supplied string or null.

[JsonConverter(typeof(OptionalStringJsonConverter))]
public readonly record struct OptionalString : IEquatable<OptionalString>
Implements
Inherited Members

Constructors

OptionalString(string?)

Creates an explicit string value; null remains an explicit null on the wire.

public OptionalString(string? value)

Parameters

value string

Properties

IsSpecified

Whether a value was explicitly supplied.

public bool IsSpecified { get; }

Property Value

bool

Value

The supplied string or explicit null.

public string? Value { get; }

Property Value

string