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

https://github.com/raphaelbressam/cross-cutting

Common methods provided by a specific layer or service used by all layers of an application. It would be like a layer/service that crosses the entire hierarchy.
https://github.com/raphaelbressam/cross-cutting

crosscuttingconcerns json

Last synced: 6 months ago
JSON representation

Common methods provided by a specific layer or service used by all layers of an application. It would be like a layer/service that crosses the entire hierarchy.

Awesome Lists containing this project

README

          

# Cross-Cutting
Cross-Cutting is a common methods provided by a specific layer or service used by all layers of an application. It would be like a layer/service that crosses the entire hierarchy.

| Package | Version | Downloads |
| ------- | ----- | ----- |
| `Cross-Cutting` | [![NuGet](https://img.shields.io/nuget/v/Cross-Cutting.svg)](https://nuget.org/packages/cross-ctting) | [![Nuget](https://img.shields.io/nuget/dt/cross-cutting.svg)](https://nuget.org/packages/Cross-Cutting) |

### Dependencies
.NET Standard 2.1

You can check supported frameworks here:

https://learn.microsoft.com/pt-br/dotnet/standard/net-standard?tabs=net-standard-2-1

### Instalation
This package is available through Nuget Packages: https://www.nuget.org/packages/cross-cutting

**Nuget**
```
Install-Package Cross-Cutting
```

**.NET CLI**
```
dotnet add package Cross-Cutting
```

## Json Utils
### Serialize
```csharp
Person person = new Person("Raphael", "Bressam");
var jsonString = JsonParser.Serialize(person);
```
### Deserialize
```csharp
string jsonString = "{ \"first_name\":\"Raphael\", \"last_name\":\"Bressam\" }";
Person person = JsonParser.Deserialize(jsonString);
```

## String Extensions
### ToBase64String
```csharp
using CrossCutting.Extensions;

string fullName = "Contoso Dias";
string base64String = fullName.ToBase64String();
```
### FromBase64String
```csharp
using CrossCutting.Extensions;

string base64String = "Q29udG9zbyBEaWFz";
string fullName = base64String.FromBase64String();
```