confluent-kafka-dotnet
Show / Hide Table of Contents

Class DecimalExtensions

Protobuf decimal extensions

Inheritance
object
DecimalExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry.Serdes
Assembly: Confluent.SchemaRegistry.Serdes.Protobuf.dll
Syntax
public static class DecimalExtensions

Methods

ToProtobufDecimal(decimal)

Converts a decimal to a Protobuf decimal

Declaration
public static Decimal ToProtobufDecimal(this decimal value)
Parameters
Type Name Description
decimal value

Decimal value

Returns
Type Description
Decimal

Protobuf decimal value

ToSystemDecimal(Decimal)

Converts a Protobuf decimal to decimal

Declaration
public static decimal ToSystemDecimal(this Decimal value)
Parameters
Type Name Description
Decimal value

Protobuf decimal value

Returns
Type Description
decimal

Decimal value

In this article