Skip to content

# Asn1Integer

Namespace: O2S.Components.PDF4NET.DigitalSignatures.Asn1

Defines an ASN.1 integer object.

    public class Asn1Integer : Asn1Object

Inheritance Object → Asn1Object → Asn1Integer
Implements

## Properties

### LongValue

Gets the integer associated with this object.

    public long LongValue { get; }

Property Value

Int64
An integer that fits the long type range.

Remarks

If the value of this object does not fit the range of long data type then this property returns -1 and the Asn1Integer.Value property is set.

### Tag

Gets the object tag.

    public Asn1Tag Tag { get; }

Property Value

Asn1Tag
A Asn1Tag enum member specifying the type of the object.

### Value

Gets the integer associated with this object.

    public Byte[] Value { get; }

Property Value

Byte[]
The integer value as a byte array using base 256.

## Methods

### Equals(Object)

Tests if this object equals another object.

    public bool Equals(object obj)

Parameters

`obj` Object

Returns

Boolean
True if both objects represent the same logical value.

### GetHashCode()

    public int GetHashCode()

Returns

Int32

### ToString()

Gets the string representation of this object.

    public string ToString()

Returns

String
This object as string.