Table of Contents

Class Int32JsonToken

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

Represents an Int32 JSON token.

public class Int32JsonToken : JsonToken
Inheritance
Int32JsonToken
Inherited Members
Extension Methods

Constructors

Int32JsonToken(string, int)

Initializes a new instance of the Int32JsonToken class.

public Int32JsonToken(string lexeme, int value)

Parameters

lexeme string

The lexeme.

value int

The Int32 value.

Properties

DoubleValue

Gets the value of a Double token.

public override double DoubleValue { get; }

Property Value

double

Int32Value

Gets the value of an Int32 token.

public override int Int32Value { get; }

Property Value

int

Int64Value

Gets the value of an Int32 token as an Int64.

public override long Int64Value { get; }

Property Value

long

IsNumber

Gets a value indicating whether this token is number.

public override bool IsNumber { get; }

Property Value

bool

true if this token is number; otherwise, false.