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.
- Host: GitHub
- URL: https://github.com/raphaelbressam/cross-cutting
- Owner: raphaelbressam
- License: apache-2.0
- Created: 2023-08-08T11:08:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T13:15:34.000Z (over 2 years ago)
- Last Synced: 2025-11-22T04:07:32.436Z (8 months ago)
- Topics: crosscuttingconcerns, json
- Language: C#
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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` | [](https://nuget.org/packages/cross-ctting) | [](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();
```