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

Public Member Functions

int CompareTo (object? value)
 
int CompareTo (ushort value)
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (ushort obj)
 
override int GetHashCode ()
 
override string ToString ()
 
string ToString (IFormatProvider? provider)
 
string ToString (string? format)
 
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 ushort Parse (string s)
 
static ushort Parse (string s, NumberStyles style)
 
static ushort Parse (string s, IFormatProvider? provider)
 
static ushort Parse (string s, NumberStyles style, IFormatProvider? provider)
 
static ushort Parse (ReadOnlySpan< char > s, NumberStyles style=NumberStyles.Integer, IFormatProvider? provider=null)
 
static bool TryParse ([NotNullWhen(true)] string? s, out ushort result)
 
static bool TryParse (ReadOnlySpan< char > s, out ushort result)
 
static bool TryParse ([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out ushort result)
 
static bool TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider, out ushort result)
 
static ushort IAdditionOperators< ushort, ushort, ushort >. operator+ (ushort left, ushort right)
 
static ushort IBinaryInteger< ushort >. LeadingZeroCount (ushort value)
 
static ushort IBinaryInteger< ushort >. PopCount (ushort value)
 
static ushort IBinaryInteger< ushort >. RotateLeft (ushort value, int rotateAmount)
 
static ushort IBinaryInteger< ushort >. RotateRight (ushort value, int rotateAmount)
 
static ushort IBinaryInteger< ushort >. TrailingZeroCount (ushort value)
 
static bool IBinaryNumber< ushort >. IsPow2 (ushort value)
 
static ushort IBinaryNumber< ushort >. Log2 (ushort value)
 
static ushort IBitwiseOperators< ushort, ushort, ushort >. operator& (ushort left, ushort right)
 
static ushort IBitwiseOperators< ushort, ushort, ushort >. operator| (ushort left, ushort right)
 
static ushort IBitwiseOperators< ushort, ushort, ushort >. operator^ (ushort left, ushort right)
 
static ushort IBitwiseOperators< ushort, ushort, ushort >. operator~ (ushort value)
 
static bool IComparisonOperators< ushort, ushort >. operator< (ushort left, ushort right)
 
static bool IComparisonOperators< ushort, ushort >. operator<= (ushort left, ushort right)
 
static bool IComparisonOperators< ushort, ushort >. operator> (ushort left, ushort right)
 
static bool IComparisonOperators< ushort, ushort >. operator>= (ushort left, ushort right)
 
static ushort IDecrementOperators< ushort >. operator-- (ushort value)
 
static ushort IDivisionOperators< ushort, ushort, ushort >. operator/ (ushort left, ushort right)
 
static bool IEqualityOperators< ushort, ushort >. operator== (ushort left, ushort right)
 
static bool IEqualityOperators< ushort, ushort >. operator!= (ushort left, ushort right)
 
static ushort IIncrementOperators< ushort >. operator++ (ushort value)
 
static ushort IModulusOperators< ushort, ushort, ushort >. operator% (ushort left, ushort right)
 
static ushort IMultiplyOperators< ushort, ushort, ushort >. operator* (ushort left, ushort right)
 
static ushort INumber< ushort >. Abs (ushort value)
 
static ushort INumber< ushort >. Clamp (ushort value, ushort min, ushort max)
 
static ushort INumber< ushort >. Create< TOther > (TOther value)
 
static ushort INumber< ushort >. CreateSaturating< TOther > (TOther value)
 
static ushort INumber< ushort >. CreateTruncating< TOther > (TOther value)
 
static ushort ushort Remainder INumber< ushort >. DivRem (ushort left, ushort right)
 
static ushort INumber< ushort >. Max (ushort x, ushort y)
 
static ushort INumber< ushort >. Min (ushort x, ushort y)
 
static ushort INumber< ushort >. Parse (string s, NumberStyles style, IFormatProvider provider)
 
static ushort INumber< ushort >. Parse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider provider)
 
static ushort INumber< ushort >. Sign (ushort value)
 
static bool INumber< ushort >. TryCreate< TOther > (TOther value, out ushort result)
 
static bool INumber< ushort >. TryParse ([NotNullWhen(true)] string s, NumberStyles style, IFormatProvider provider, out ushort result)
 
static bool INumber< ushort >. TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider provider, out ushort result)
 
static ushort IParseable< ushort >. Parse (string s, IFormatProvider provider)
 
static bool IParseable< ushort >. TryParse ([NotNullWhen(true)] string s, IFormatProvider provider, out ushort result)
 
static ushort IShiftOperators< ushort, ushort >. operator<< (ushort value, int shiftAmount)
 
static ushort IShiftOperators< ushort, ushort >. operator>> (ushort value, int shiftAmount)
 
static ushort ISpanParseable< ushort >. Parse (ReadOnlySpan< char > s, IFormatProvider provider)
 
static bool ISpanParseable< ushort >. TryParse (ReadOnlySpan< char > s, IFormatProvider provider, out ushort result)
 
static ushort ISubtractionOperators< ushort, ushort, ushort >. operator- (ushort left, ushort right)
 
static ushort IUnaryNegationOperators< ushort, ushort >. operator- (ushort value)
 
static ushort IUnaryPlusOperators< ushort, ushort >. operator+ (ushort 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 ushort MaxValue = 65535
 
const ushort MinValue = 0
 
static ushort Quotient
 

Properties

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

Static Private Member Functions

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

Private Attributes

readonly ushort m_value
 

Detailed Description

Definition at line 12 of file UInt16.cs.


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