Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gardasar-code/gardasarcode.base
- Owner: gardasar-code
- License: mit
- Created: 2024-10-06T14:07:30.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-16T11:58:24.000Z (3 months ago)
- Last Synced: 2024-10-19T18:01:51.711Z (3 months ago)
- Topics: cbor, nuget-package
- Language: C#
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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.**