Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Byte Struct Reference

Public Member Functions

int CompareTo (object? value)
 
int CompareTo (byte value)
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (byte obj)
 
override int GetHashCode ()
 
override string ToString ()
 
string ToString (string? format)
 
string ToString (IFormatProvider? provider)
 
string ToString (string? format, IFormatProvider? provider)
 
bool TryFormat (Span< char > destination, out int charsWritten, ReadOnlySpan< char > format=default(ReadOnlySpan< char >), IFormatProvider? provider=null)
 
TypeCode GetTypeCode ()
 
bool IConvertible. ToBoolean (IFormatProvider provider)
 
char IConvertible. ToChar (IFormatProvider provider)
 
sbyte IConvertible. ToSByte (IFormatProvider provider)
 
byte IConvertible. ToByte (IFormatProvider provider)
 
short IConvertible. ToInt16 (IFormatProvider provider)
 
ushort IConvertible. ToUInt16 (IFormatProvider provider)
 
int IConvertible. ToInt32 (IFormatProvider provider)
 
uint IConvertible. ToUInt32 (IFormatProvider provider)
 
long IConvertible. ToInt64 (IFormatProvider provider)
 
ulong IConvertible. ToUInt64 (IFormatProvider provider)
 
float IConvertible. ToSingle (IFormatProvider provider)
 
double IConvertible. ToDouble (IFormatProvider provider)
 
decimal IConvertible. ToDecimal (IFormatProvider provider)
 
DateTime IConvertible. ToDateTime (IFormatProvider provider)
 
object IConvertible. ToType (Type type, IFormatProvider provider)
 
int CompareTo (T? other)
 
bool ToBoolean (IFormatProvider? provider)
 
char ToChar (IFormatProvider? provider)
 
sbyte ToSByte (IFormatProvider? provider)
 
byte ToByte (IFormatProvider? provider)
 
short ToInt16 (IFormatProvider? provider)
 
ushort ToUInt16 (IFormatProvider? provider)
 
int ToInt32 (IFormatProvider? provider)
 
uint ToUInt32 (IFormatProvider? provider)
 
long ToInt64 (IFormatProvider? provider)
 
ulong ToUInt64 (IFormatProvider? provider)
 
float ToSingle (IFormatProvider? provider)
 
double ToDouble (IFormatProvider? provider)
 
decimal ToDecimal (IFormatProvider? provider)
 
DateTime ToDateTime (IFormatProvider? provider)
 
object ToType (Type conversionType, IFormatProvider? provider)
 
int CompareTo (T? other)
 
bool Equals (T? other)
 

Static Public Member Functions

static byte Parse (string s)
 
static byte Parse (string s, NumberStyles style)
 
static byte Parse (string s, IFormatProvider? provider)
 
static byte Parse (string s, NumberStyles style, IFormatProvider? provider)
 
static byte Parse (ReadOnlySpan< char > s, NumberStyles style=NumberStyles.Integer, IFormatProvider? provider=null)
 
static bool TryParse ([NotNullWhen(true)] string? s, out byte result)
 
static bool TryParse (ReadOnlySpan< char > s, out byte result)
 
static bool TryParse ([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out byte result)
 
static bool TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider, out byte result)
 
static byte IAdditionOperators< byte, byte, byte >. operator+ (byte left, byte right)
 
static byte IBinaryInteger< byte >. LeadingZeroCount (byte value)
 
static byte IBinaryInteger< byte >. PopCount (byte value)
 
static byte IBinaryInteger< byte >. RotateLeft (byte value, int rotateAmount)
 
static byte IBinaryInteger< byte >. RotateRight (byte value, int rotateAmount)
 
static byte IBinaryInteger< byte >. TrailingZeroCount (byte value)
 
static bool IBinaryNumber< byte >. IsPow2 (byte value)
 
static byte IBinaryNumber< byte >. Log2 (byte value)
 
static byte IBitwiseOperators< byte, byte, byte >. operator& (byte left, byte right)
 
static byte IBitwiseOperators< byte, byte, byte >. operator| (byte left, byte right)
 
static byte IBitwiseOperators< byte, byte, byte >. operator^ (byte left, byte right)
 
static byte IBitwiseOperators< byte, byte, byte >. operator~ (byte value)
 
static bool IComparisonOperators< byte, byte >. operator< (byte left, byte right)
 
static bool IComparisonOperators< byte, byte >. operator<= (byte left, byte right)
 
static bool IComparisonOperators< byte, byte >. operator> (byte left, byte right)
 
static bool IComparisonOperators< byte, byte >. operator>= (byte left, byte right)
 
static byte IDecrementOperators< byte >. operator-- (byte value)
 
static byte IDivisionOperators< byte, byte, byte >. operator/ (byte left, byte right)
 
static bool IEqualityOperators< byte, byte >. operator== (byte left, byte right)
 
static bool IEqualityOperators< byte, byte >. operator!= (byte left, byte right)
 
static byte IIncrementOperators< byte >. operator++ (byte value)
 
static byte IModulusOperators< byte, byte, byte >. operator% (byte left, byte right)
 
static byte IMultiplyOperators< byte, byte, byte >. operator* (byte left, byte right)
 
static byte INumber< byte >. Abs (byte value)
 
static byte INumber< byte >. Clamp (byte value, byte min, byte max)
 
static byte INumber< byte >. Create< TOther > (TOther value)
 
static byte INumber< byte >. CreateSaturating< TOther > (TOther value)
 
static byte INumber< byte >. CreateTruncating< TOther > (TOther value)
 
static byte byte Remainder INumber< byte >. DivRem (byte left, byte right)
 
static byte INumber< byte >. Max (byte x, byte y)
 
static byte INumber< byte >. Min (byte x, byte y)
 
static byte INumber< byte >. Parse (string s, NumberStyles style, IFormatProvider provider)
 
static byte INumber< byte >. Parse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider provider)
 
static byte INumber< byte >. Sign (byte value)
 
static bool INumber< byte >. TryCreate< TOther > (TOther value, out byte result)
 
static bool INumber< byte >. TryParse ([NotNullWhen(true)] string s, NumberStyles style, IFormatProvider provider, out byte result)
 
static bool INumber< byte >. TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider provider, out byte result)
 
static byte IParseable< byte >. Parse (string s, IFormatProvider provider)
 
static bool IParseable< byte >. TryParse ([NotNullWhen(true)] string s, IFormatProvider provider, out byte result)
 
static byte IShiftOperators< byte, byte >. operator<< (byte value, int shiftAmount)
 
static byte IShiftOperators< byte, byte >. operator>> (byte value, int shiftAmount)
 
static byte ISpanParseable< byte >. Parse (ReadOnlySpan< char > s, IFormatProvider provider)
 
static bool ISpanParseable< byte >. TryParse (ReadOnlySpan< char > s, IFormatProvider provider, out byte result)
 
static byte ISubtractionOperators< byte, byte, byte >. operator- (byte left, byte right)
 
static byte IUnaryNegationOperators< byte, byte >. operator- (byte value)
 
static byte IUnaryPlusOperators< byte, byte >. operator+ (byte value)
 
static TSelf LeadingZeroCount (TSelf value)
 
static TSelf PopCount (TSelf value)
 
static TSelf RotateLeft (TSelf value, int rotateAmount)
 
static TSelf RotateRight (TSelf value, int rotateAmount)
 
static TSelf TrailingZeroCount (TSelf value)
 
static bool IsPow2 (TSelf value)
 
static TSelf Log2 (TSelf value)
 
static TResult operator& (TSelf left, TOther right)
 
static TResult operator| (TSelf left, TOther right)
 
static TResult operator^ (TSelf left, TOther right)
 
static TResult operator~ (TSelf value)
 
static TSelf Abs (TSelf value)
 
static TSelf Clamp (TSelf value, TSelf min, TSelf max)
 
static TSelf TSelf Remainder DivRem (TSelf left, TSelf right)
 
static TSelf Max (TSelf x, TSelf y)
 
static TSelf Min (TSelf x, TSelf y)
 
static TSelf Parse (string s, NumberStyles style, IFormatProvider? provider)
 
static TSelf Parse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider)
 
static TSelf Sign (TSelf value)
 
static bool TryCreate< TOther > (TOther value, out TSelf result)
 
static bool TryParse ([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out TSelf result)
 
static bool TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider, out TSelf result)
 
static TResult operator+ (TSelf left, TOther right)
 
static bool operator< (TSelf left, TOther right)
 
static bool operator<= (TSelf left, TOther right)
 
static bool operator> (TSelf left, TOther right)
 
static bool operator>= (TSelf left, TOther right)
 
static bool operator== (TSelf left, TOther right)
 
static bool operator!= (TSelf left, TOther right)
 
static TSelf operator-- (TSelf value)
 
static TResult operator/ (TSelf left, TOther right)
 
static TSelf operator++ (TSelf value)
 
static TResult operator% (TSelf left, TOther right)
 
static TResult operator* (TSelf left, TOther right)
 
static TSelf Parse (ReadOnlySpan< char > s, IFormatProvider? provider)
 
static bool TryParse (ReadOnlySpan< char > s, IFormatProvider? provider, out TSelf result)
 
static bool TryParse ([NotNullWhen(true)] string? s, IFormatProvider? provider, out TSelf result)
 
static TResult operator- (TSelf left, TOther right)
 
static TResult operator- (TSelf value)
 
static TResult operator+ (TSelf value)
 
static TResult operator<< (TSelf value, int shiftAmount)
 
static TResult operator>> (TSelf value, int shiftAmount)
 

Static Public Attributes

const byte MaxValue = 255
 
const byte MinValue = 0
 
static byte Quotient
 

Properties

static byte IAdditiveIdentity< byte, byte >. AdditiveIdentity [get]
 
static byte IMinMaxValue< byte >. MinValue [get]
 
static byte IMinMaxValue< byte >. MaxValue [get]
 
static byte IMultiplicativeIdentity< byte, byte >. MultiplicativeIdentity [get]
 
static byte INumber< byte >. One [get]
 
static byte INumber< byte >. Zero [get]
 

Static Private Member Functions

static byte Parse (ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info)
 
static bool TryParse (ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info, out byte result)
 

Private Attributes

readonly byte m_value
 

Detailed Description

Definition at line 11 of file Byte.cs.


The documentation for this struct was generated from the following file: