A typed value that can be stored in a GenericRecord.
More...
Inherits IEquatable< RecordValue >.
A typed value that can be stored in a GenericRecord.
Equivalent to Rust's RecordValue enum.
This struct provides type-safe storage for record field values.
Definition at line 34 of file RecordValue.cs.
◆ AsBool()
| bool? RecordValue.AsBool |
( |
| ) |
|
|
inline |
Gets the value as a boolean (from int).
Definition at line 180 of file RecordValue.cs.
◆ AsBytes()
| byte? [] RecordValue.AsBytes |
( |
| ) |
|
|
inline |
◆ AsDouble()
| double? RecordValue.AsDouble |
( |
| ) |
|
|
inline |
◆ AsFloat()
| float? RecordValue.AsFloat |
( |
| ) |
|
|
inline |
◆ AsInt()
| int? RecordValue.AsInt |
( |
| ) |
|
|
inline |
◆ AsLong()
| long? RecordValue.AsLong |
( |
| ) |
|
|
inline |
◆ AsString()
| string? RecordValue.AsString |
( |
| ) |
|
|
inline |
◆ Boolean()
Creates a boolean record value (stored as int).
◆ Bytes()
Creates a bytes record value.
◆ Double()
Creates a 64-bit double record value.
◆ Equals() [1/2]
◆ Equals() [2/2]
| override bool RecordValue.Equals |
( |
object? |
obj | ) |
|
◆ Float()
Creates a 32-bit float record value.
◆ GetHashCode()
| override int RecordValue.GetHashCode |
( |
| ) |
|
|
inline |
◆ Int()
Creates a 32-bit integer record value.
◆ Long()
Creates a 64-bit integer record value.
◆ Null()
Creates a null record value.
◆ operator !=()
◆ operator RecordValue() [1/12]
| static implicit RecordValue.operator RecordValue |
( |
int |
value | ) |
|
|
static |
◆ operator RecordValue() [2/12]
| static implicit RecordValue.operator RecordValue |
( |
long |
value | ) |
|
|
static |
◆ operator RecordValue() [3/12]
| static implicit RecordValue.operator RecordValue |
( |
float |
value | ) |
|
|
static |
◆ operator RecordValue() [4/12]
| static implicit RecordValue.operator RecordValue |
( |
double |
value | ) |
|
|
static |
◆ operator RecordValue() [5/12]
| static implicit RecordValue.operator RecordValue |
( |
string |
value | ) |
|
|
static |
◆ operator RecordValue() [6/12]
| static implicit RecordValue.operator RecordValue |
( |
byte [] |
value | ) |
|
|
static |
◆ operator RecordValue() [7/12]
| static implicit RecordValue.operator RecordValue |
( |
bool |
value | ) |
|
|
static |
◆ operator RecordValue() [8/12]
| static implicit RecordValue.operator RecordValue |
( |
int? |
value | ) |
|
|
static |
◆ operator RecordValue() [9/12]
| static implicit RecordValue.operator RecordValue |
( |
long? |
value | ) |
|
|
static |
◆ operator RecordValue() [10/12]
| static implicit RecordValue.operator RecordValue |
( |
float? |
value | ) |
|
|
static |
◆ operator RecordValue() [11/12]
| static implicit RecordValue.operator RecordValue |
( |
double? |
value | ) |
|
|
static |
◆ operator RecordValue() [12/12]
| static implicit RecordValue.operator RecordValue |
( |
bool? |
value | ) |
|
|
static |
◆ operator==()
◆ String()
Creates a string record value.
◆ ToString()
| override string RecordValue.ToString |
( |
| ) |
|
|
inline |
◆ TryGetBool()
| bool RecordValue.TryGetBool |
( |
out bool |
value | ) |
|
|
inline |
◆ TryGetBytes()
| bool RecordValue.TryGetBytes |
( |
out byte? [] |
value | ) |
|
|
inline |
◆ TryGetDouble()
| bool RecordValue.TryGetDouble |
( |
out double |
value | ) |
|
|
inline |
◆ TryGetFloat()
| bool RecordValue.TryGetFloat |
( |
out float |
value | ) |
|
|
inline |
◆ TryGetInt()
| bool RecordValue.TryGetInt |
( |
out int |
value | ) |
|
|
inline |
◆ TryGetLong()
| bool RecordValue.TryGetLong |
( |
out long |
value | ) |
|
|
inline |
◆ TryGetString()
| bool RecordValue.TryGetString |
( |
out string? |
value | ) |
|
|
inline |
◆ IsNull
Returns true if this value is null.
Definition at line 53 of file RecordValue.cs.
◆ Type
Gets the type of this record value.
Definition at line 50 of file RecordValue.cs.
The documentation for this struct was generated from the following file: