11 internal byte[] PublicKey;
22 if (publicKey ==
null)
26 PublicKey =
new byte[publicKey.Length];
27 Array.
Copy(publicKey, 0, PublicKey, 0, publicKey.Length);
32 PublicKey = Hex.DecodeHexString(publicKey);
35 private static bool CompareArrays(
byte[] first,
byte[] second)
37 if (first.Length != second.Length)
41 int num = first.Length;
42 for (
int i = 0; i < num; i++)
44 if (first[i] != second[i])
52 internal bool Equals(StrongNamePublicKeyBlob blob)
58 return CompareArrays(PublicKey, blob.PublicKey);
65 public override bool Equals(
object obj)
74 private static int GetByteArrayHashCode(
byte[] baData)
81 for (
int i = 0; i < baData.Length; i++)
83 num = ((num << 8) ^ baData[i] ^ (num >> 24));
92 return GetByteArrayHashCode(PublicKey);
99 return Hex.EncodeHexString(PublicKey);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
override int GetHashCode()
Returns a hash code based on the public key.
override string ToString()
Creates and returns a string representation of the public key blob.
StrongNamePublicKeyBlob(byte[] publicKey)
Initializes a new instance of the T:System.Security.Permissions.StrongNamePublicKeyBlob class with ra...
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
static void Copy(Array sourceArray, Array destinationArray, int length)
Copies a range of elements from an T:System.Array starting at the first element and pastes them into ...
Specifies that the class can be serialized.
override bool Equals(object obj)
Gets or sets a value indicating whether the current public key blob is equal to the specified public ...
Represents the public key information (called a blob) for a strong name. This class cannot be inherit...