[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Security.OID

Class OID

Namespace
GrapeCity.Documents.Pdf.Security
Assembly
GcDocs.Pdf.dll

Represents a cryptographic object identifier. Defines IDs of many popular cryptographic items such as HASH algorithms, encoding algorithms etc.

public class OID : IEquatable<OID>
Inheritance
object
OID
Implements
System.IEquatable<T><OID>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Constructors

OID(string, string)

Initializes a new instance of the OID class.

public OID(string id, string name)

Parameters

id string

The dotted number of the identifier.

name string

The friendly name of the identifier.

OID(string)

Initializes a new instance of the OID class.

public OID(string id)

Parameters

id string

The dotted number of the identifier.

Fields

ID

Gets the dotted number of the identifier.

public readonly string ID

Field Value

string

Name

Gets the friendly name of the identifier.

public readonly string Name

Field Value

string

Methods

AreEqual(OID, OID)

Compares two OID objects, returns true if they are equal or both are null.

public static bool AreEqual(OID v1, OID v2)

Parameters

v1 OID
v2 OID

Returns

bool

Equals(OID)

Returns true if this instance equals to other.

public bool Equals(OID other)

Parameters

other OID

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

Returns the ID.

public override string ToString()

Returns

string

Operators

operator ==(OID, OID)

Equality operator.

public static bool operator ==(OID v1, OID v2)

Parameters

v1 OID
v2 OID

Returns

bool

operator !=(OID, OID)

Inequality operator.

public static bool operator !=(OID v1, OID v2)

Parameters

v1 OID
v2 OID

Returns

bool