Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grumpybusted/grumpy.common
Extension Methods and Helper classes
https://github.com/grumpybusted/grumpy.common
extension-methods nuget process-information task unique-id xml
Last synced: 8 days ago
JSON representation
Extension Methods and Helper classes
- Host: GitHub
- URL: https://github.com/grumpybusted/grumpy.common
- Owner: GrumpyBusted
- License: mit
- Created: 2018-01-12T21:07:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T08:18:57.000Z (over 5 years ago)
- Last Synced: 2024-11-15T03:33:20.369Z (about 1 month ago)
- Topics: extension-methods, nuget, process-information, task, unique-id, xml
- Language: C#
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build status](https://ci.appveyor.com/api/projects/status/92rb6muqvqw5t6xf?svg=true)](https://ci.appveyor.com/project/GrumpyBusted/grumpy-common)
[![codecov](https://codecov.io/gh/GrumpyBusted/Grumpy.Common/branch/master/graph/badge.svg)](https://codecov.io/gh/GrumpyBusted/Grumpy.Common)
[![nuget](https://img.shields.io/nuget/v/Grumpy.Common.svg)](https://www.nuget.org/packages/Grumpy.Common/)
[![downloads](https://img.shields.io/nuget/dt/Grumpy.Common.svg)](https://www.nuget.org/packages/Grumpy.Common/)# Grumpy.Common
Extension methods for string, object etc. used in my other projects, this NuGet package do not refer other Packages or
Libraries. This library includes code that I have developed, copied from the internet and copied from a few friends. The
intention of the library is to make coding easier in other projects.See below for a taste of what this library contains.
## XML Serialization
```csharp
public class TestPerson
{
public int Age { get; set; }
public string Name { get; set; }
}const string str = "8Sara";
var obj = str.DeserializeFromXml();
obj.Age.Should().Be(8);
obj.Name.Should().Be("Sara");var xmlString = obj.SerializeToXml();
```## In Function
```csharp
var i = 2;bool res = i.In(1, 3, 5);
```