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

Public Member Functions

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

Static Package Functions

static int Create< TOther > (TOther value)
 

Properties

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

Private Attributes

readonly int m_value
 

Detailed Description

Definition at line 11 of file Int32.cs.


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