Name
Int64
Synopsis
This is the value type for
64-bit integers (which can range,
approximately, from -9.22x1018 to
9.22x1018). This is also available in C#
through the long
alias.
public struct Int64 : IComparable, IFormattable, IConvertible { // Public Static Fields public const long MaxValue; // =9223372036854775807 public const long MinValue; // =-9223372036854775808 // Public Static Methods public static long Parse(strings
); public static long Parse(strings
, IFormatProviderprovider
); public static long Parse(strings
, System.Globalization.NumberStylesstyle
); public static long Parse(strings
, System.Globalization.NumberStylesstyle
, IFormatProviderprovider
); // Public Instance Methods public int CompareTo(objectvalue
); // implements IComparable public override bool Equals(objectobj
); // overrides ValueType public override int GetHashCode( ); // overrides ValueType public TypeCode GetTypeCode( ); // implements IConvertible public override string ToString( ); // overrides ValueType public string ToString(IFormatProviderprovider
); // implements IConvertible public string ToString(stringformat
); public string ToString(stringformat
, IFormatProviderprovider
) // implements IFormattable }
Hierarchy
Object
→
ValueType
→
Int64(IComparable, IFormattable
, IConvertible)
Returned By
Multiple types
Passed To
Multiple types
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.