C # in a Nutshell, Second Edition

Int64 CF 1.0, ECMA 1.0, serializable

System (mscorlib.dll) struct

This is the value type for 64-bit integers (which can range, approximately, from -9.22x10 18 to 9.22x10 18 ). 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 (string s ); public static long Parse (string s , IFormatProvider provider ); public static long Parse (string s , System.Globalization.NumberStyles style ); public static long Parse (string s , System.Globalization.NumberStyles style , IFormatProvider provider ); // Public Instance Methods public int CompareTo (object value ); // implements IComparable public override bool Equals (object obj ); // overrides ValueType public override int GetHashCode ( ); // overrides ValueType public TypeCode GetTypeCode ( ); // implements IConvertible public override string ToString ( ); // overrides ValueType public string ToString (IFormatProvider provider ); // implements IConvertible public string ToString (string format ); public string ToString (string format , IFormatProvider provider ) // implements IFormattable }

Hierarchy

Object ValueType Int64(IComparable, IFormattable , IConvertible)

Returned By

Multiple types

Passed To

Multiple types

Категории