Class DynamoISetLongConverter
The DynamoISet<long>
value to/from a DynamoDB attribute value.
Implements
Inherited Members
Namespace: LambdaSharp.DynamoDB.Serialization.Converters
Assembly: LambdaSharp.DynamoDB.Serialization.dll
Syntax
public class DynamoISetLongConverter : ADynamoAttributeConverter, IDynamoAttributeConverter
Fields
Instance
The Instance class field exposes a reusable instance of the class.
Declaration
public static readonly DynamoISetLongConverter Instance
Field Value
Type | Description |
---|---|
Dynamo |
Methods
CanConvert(Type)
The Can
Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeToConvert | The type to convert. |
Returns
Type | Description |
---|---|
System. |
|
Overrides
FromNumberSet(List<String>, Type, DynamoSerializerOptions)
The FromNumberSet(List<String>, Type, DynamoSerializerOptions) method converts a DynamoDB NS attribute value to the type of the converter.
Declaration
public override object FromNumberSet(List<string> value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
GetDefaultValue(Type, DynamoSerializerOptions)
The Get
Declaration
public override object GetDefaultValue(Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
Overrides
ToAttributeValue(Object, Type, DynamoSerializerOptions)
The To
Declaration
public override AttributeValue ToAttributeValue(object value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The value to convert. |
System. |
targetType | The source value type. |
Dynamo |
options | The serialization options. |
Returns
Type | Description |
---|---|
Amazon. |
A DynamoDB attribute value, or |