https://github.com/imclint21/easesharp
Provide an abstraction layer to C# to simplify some stuffs and extends some objects.
https://github.com/imclint21/easesharp
basic-programming clint csharp csharp-library json prettify-library string
Last synced: about 2 months ago
JSON representation
Provide an abstraction layer to C# to simplify some stuffs and extends some objects.
- Host: GitHub
- URL: https://github.com/imclint21/easesharp
- Owner: imclint21
- License: mit
- Created: 2019-05-25T16:01:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:36:36.000Z (over 3 years ago)
- Last Synced: 2025-10-12T17:08:12.813Z (8 months ago)
- Topics: basic-programming, clint, csharp, csharp-library, json, prettify-library, string
- Language: C#
- Homepage: https://www.nuget.org/packages/ClintSharp
- Size: 931 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# About ClintSharp
Provide an abstraction layer to C# to simplify some stuffs.
Install ClintSharp
---
Open Powershell or a terminal and enter this command:
```csharp
dotnet add package ClintSharp
```
String Functions:
---
```csharp
var name = "";
Console.WriteLine(name.IsNull()); // true
```
DateTime Functions:
---
```csharp
var date = DateTime.Now;
Console.WriteLine(date.ToTimestamp()); // 1558800650
```
Json Functions:
---
The Json methods use Newtonsoft.Json.
```csharp
var user = new List() {};
...
Console.WriteLine(date.ToJson());
// Result: [{"username":"Clint","age":30},{"username":"John","age":19},{"username":"Jack","age":25}]
```
```csharp
var user = new List() {};
...
Console.WriteLine(date.ToJsonF());
```
Result:
```json
[
{
"username": "Clint",
"age": 30
},
{
"username": "John",
"age": 19
},
{
"username": "Jack",
"age": 25
}
]
```