কম্পিউটার টিউটোরিয়াল

C#-এ Byte.GetHashCode() মেথড

সিনট্যাক্স

public override int GetHashCode ();

উদাহরণ

using System; 
public class Demo { 
    public static void Main(){ 
        long val = 5654665; 
        byte[] arr = BitConverter.GetBytes(val); 
        for (int i = 0; i < arr.Length; i++) { 
            int res = arr[i].GetHashCode(); 
            Console.WriteLine("Hashcode = " + res); 
        } 
    } 
}

আউটপুট

Hashcode = 137 Hashcode = 72 Hashcode = 86 Hashcode = 0 Hashcode = 0 Hashcode = 0 Hashcode = 0 Hashcode = 0
  1. C#-এ UInt64.GetHashCode() মেথড: হ্যাশ কোড জেনারেট করা

  2. C#-এ Type.GetHashCode() পদ্ধতি

  3. C#-এ UInt16.GetHashCode() মেথড উদাহরণসহ

  4. C#-এ CharEnumerator.GetHashCode() মেথড