Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gardasar-code/gardasarcode.base

Extensions, syntactic sugar, generic classes
https://github.com/gardasar-code/gardasarcode.base

cbor nuget-package

Last synced: 29 days ago
JSON representation

Extensions, syntactic sugar, generic classes

Awesome Lists containing this project

README

        

[![build](https://github.com/gardasar-code/GardasarCode.Base/actions/workflows/build.yml/badge.svg)](https://github.com/gardasar-code/GardasarCode.Base/actions/workflows/build.yml) [![deploy](https://github.com/gardasar-code/GardasarCode.Base/actions/workflows/deploy.yml/badge.svg)](https://github.com/gardasar-code/GardasarCode.Base/actions/workflows/deploy.yml) [![NuGet Version](https://img.shields.io/nuget/v/GardasarCode.Base.svg)](https://www.nuget.org/packages/GardasarCode.Base/) ![NuGet Downloads](https://img.shields.io/nuget/dt/GardasarCode.Base) ![GitHub License](https://img.shields.io/github/license/gardasar-code/GardasarCode.Base)

# GardasarCode.Base

## CBOR

"Any" object can be serialized to and deserialized from CBOR format using the `CBOR` class.

```csharp
var obj = new Dictionary
{
{ "key1", 1 },
{ "key2", "value2" },
{ "key3", new List { 1, 2, 3 } }
};

CborBytes cbor = CBOR.Serialize(obj);
var obj2 = CBOR.Deserialize>(cbor);
```

> **Being supplemented.**