C# | Int 64 Struct
In C#, Int64 Struct is used to represent 64-bit signed integer(also termed as long data type) starting from range -9,223,372,036,854,775,808 to +9, 223,372,036,854,775,807. It provides different types of method to perform various operations. A user can perform the mathematical operation like addition, subtraction, multiplication, etc. on Int64 type. It supports bitwise operations like AND, OR, XOR, etc. It provides full support for standard and custom numeric format strings. The user can also call the methods of Convert and Math class to perform operations on Int64 value. Int64 struct inherits the ValueType class which inherits the Object class.
|MaxValue||This field is used to represent the largest possible value of an Int64. This field is constant.|
|MinValue||This field is used to represent the smallest possible value of an Int64. This field is constant.|
Value 1: 89 Value 2: 50 Value 3: 10 Maximum Value: 9223372036854775807 Minimum Value: -9223372036854775808
|CompareTo()||This method is used to compare this instance to a specified object or Int64 and returns an indication of their relative values.|
|Equals()||This method is used to return a value indicating whether this instance is equal to a specified object or Int64.|
|GetHashCode()||This method is used to return the hash code for this instance.|
|GetTypeCode()||This method is used to return the TypeCode for value type Int64.|
|Parse()||This method is used to convert the string representation of a number to its 64-bit signed integer equivalent.|
|ToString()||This method is used to convert the numeric value of this instance to its equivalent string representation.|
|TryParse()||This method is used to convert the string representation of a number to its 64-bit signed integer equivalent. A return value indicates whether the conversion succeeded or failed.|
45643212342 is not equal to 543256344233
TypeCode for Int64 is: Int64
My Personal Notes arrow_drop_up
Please Login to comment...