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: 3 months 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T08:18:57.000Z (almost 6 years ago)
- Last Synced: 2025-03-08T17:17:54.072Z (4 months 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
[](https://ci.appveyor.com/project/GrumpyBusted/grumpy-common)
[](https://codecov.io/gh/GrumpyBusted/Grumpy.Common)
[](https://www.nuget.org/packages/Grumpy.Common/)
[](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);
```