Struct Size
public readonly struct Size : IEquatable<Size>
- Implements
- Inherited Members
Properties
Kind
public SizeKind Kind { get; }
Property Value
Unknown
public static Size Unknown { get; }
Property Value
Value
public int Value { get; }
Property Value
Zero
public static Size Zero { get; }
Property Value
Methods
Combine(Size)
public Size Combine(Size other)
Parameters
other
Size
Returns
Create(int)
public static Size Create(int byteCount)
Parameters
byteCount
int
Returns
CreateUpperBound(int)
public static Size CreateUpperBound(int byteCount)
Parameters
byteCount
int
Returns
Equals(Size)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Size other)
Parameters
other
SizeAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
TryCombine(Size, out Size)
public bool TryCombine(Size other, out Size result)
Parameters
Returns
Operators
operator ==(Size, Size)
public static bool operator ==(Size left, Size right)
Parameters
Returns
implicit operator Size(int)
public static implicit operator Size(int value)
Parameters
value
int
Returns
operator !=(Size, Size)
public static bool operator !=(Size left, Size right)