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

Public Member Functions

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

Properties

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

Static Private Member Functions

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

Private Attributes

readonly short m_value
 

Detailed Description

Definition at line 11 of file Int16.cs.


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