[]
Represents a cryptographic object identifier. Defines IDs of many popular cryptographic items such as HASH algorithms, encoding algorithms etc.
public class OID : IEquatable<OID>
Initializes a new instance of the OID class.
public OID(string id, string name)
id
stringThe dotted number of the identifier.
name
stringThe friendly name of the identifier.
Initializes a new instance of the OID class.
public OID(string id)
id
stringThe dotted number of the identifier.
Gets the dotted number of the identifier.
public readonly string ID
Gets the friendly name of the identifier.
public readonly string Name
Compares two OID objects, returns true if they are equal or both are null.
public static bool AreEqual(OID v1, OID v2)
Returns true if this instance equals to other
.
public bool Equals(OID other)
other
OIDpublic override bool Equals(object obj)
obj
objectpublic override int GetHashCode()
Returns the ID.
public override string ToString()
Equality operator.
public static bool operator ==(OID v1, OID v2)
Inequality operator.
public static bool operator !=(OID v1, OID v2)