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

◆ Equals() [2/3]

bool System.Security.Cryptography.CngProperty.Equals ( CngProperty other)
inline

Definition at line 47 of file CngProperty.cs.

48 {
49 if (!string.Equals(Name, other.Name, StringComparison.Ordinal))
50 {
51 return false;
52 }
53 if (Options != other.Options)
54 {
55 return false;
56 }
57 if (_value == null)
58 {
59 return other._value == null;
60 }
61 if (other._value == null)
62 {
63 return false;
64 }
65 if (_value.Length != other._value.Length)
66 {
67 return false;
68 }
69 for (int i = 0; i < _value.Length; i++)
70 {
71 if (_value[i] != other._value[i])
72 {
73 return false;
74 }
75 }
76 return true;
77 }
override bool Equals([NotNullWhen(true)] object? obj)

References System.Security.Cryptography.CngProperty._value, System.Security.Cryptography.CngProperty.Equals(), System.Security.Cryptography.CngProperty.Name, System.Security.Cryptography.CngProperty.Options, and System.other.