Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Equals() [2/2]

virtual bool System.Security.Cryptography.X509Certificates.X509Certificate.Equals ( [NotNullWhen(true)] X509Certificate? other)
inlinevirtualinherited

Definition at line 279 of file X509Certificate.cs.

280 {
281 if (other == null)
282 {
283 return false;
284 }
285 if (Pal == null)
286 {
287 return other.Pal == null;
288 }
289 if (!Issuer.Equals(other.Issuer))
290 {
291 return false;
292 }
294 byte[] rawSerialNumber2 = other.GetRawSerialNumber();
295 if (rawSerialNumber.Length != rawSerialNumber2.Length)
296 {
297 return false;
298 }
299 for (int i = 0; i < rawSerialNumber.Length; i++)
300 {
302 {
303 return false;
304 }
305 }
306 return true;
307 }

References System.Runtime.Serialization.Dictionary, System.Security.Cryptography.X509Certificates.X509Certificate.GetRawSerialNumber(), System.Security.Cryptography.X509Certificates.X509Certificate.Issuer, and System.other.