Table of Contents

Class DecimalObjectValue

Namespace
Smartsheet.Api.Models
Assembly
smartsheet-csharp-sdk.dll

Implementation of the decimal object value type. This class preserves decimal precision for numeric values, unlike NumberObjectValue which uses double.

public class DecimalObjectValue : IPrimitiveObjectValue<decimal>, ObjectValue
Inheritance
DecimalObjectValue
Implements
Inherited Members

Constructors

DecimalObjectValue(decimal)

Constructor for taking a decimal and holding it.

public DecimalObjectValue(decimal value)

Parameters

value decimal

Properties

ObjectType

Method to return the type of object this is.

public ObjectValueType ObjectType { get; }

Property Value

ObjectValueType

Value

Getter/setter for the decimal value.

public decimal Value { get; set; }

Property Value

decimal

Methods

Serialize(JsonWriter)

Serialize function that returns nothing but writes object using writer passed in.

public void Serialize(JsonWriter writer)

Parameters

writer JsonWriter