<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.2.25163.9" />
Value
A struct that can hold any value type or reference type without boxing primitive types or enums. Behavior matches
casting to/from object.
public Value(
object value)
Creates a new
Value with the given
object. To avoid boxing enums, use the
Create<T> method instead.
public Value(
byte?
value)
public Value(
sbyte value)
public Value(
sbyte?
value)
public Value(
bool?
value)
public Value(
char?
value)
public Value(
short value)
public Value(
short?
value)
public Value(
long?
value)
public Value(
ushort value)
public Value(
ushort?
value)
public Value(
uint?
value)
public Value(
ulong value)
public Value(
ulong?
value)
public Value(
float value)
public Value(
float?
value)
public Value(
double value)
public Value(
double?
value)
Creates a new
Value with the given value. This method can always be used and avoids boxing enums.
Gets the value as the specified T.
Tries to get the value stored in this
Value as the given type. Returns
true if
the type matches.