Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex-titarenko/common
Base class library for commonly occurring problems (.NET Standard).
https://github.com/alex-titarenko/common
c-sharp common common-library net-standard nuget
Last synced: 3 months ago
JSON representation
Base class library for commonly occurring problems (.NET Standard).
- Host: GitHub
- URL: https://github.com/alex-titarenko/common
- Owner: alex-titarenko
- License: mit
- Created: 2015-02-11T20:30:11.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T00:48:54.000Z (about 2 years ago)
- Last Synced: 2024-11-10T04:50:01.372Z (3 months ago)
- Topics: c-sharp, common, common-library, net-standard, nuget
- Language: C#
- Homepage:
- Size: 621 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TAlex.Common
![Build](https://github.com/alex-titarenko/common/workflows/Build/badge.svg?branch=main)Base class library for commonly occurring problems.
## Structure
* **TAlex.Common** - contains different extensions for assembly, string, exression classes and etc.
* **TAlex.Common.Diagnostics** - provides error reporting and logging functionality for your apps.
* **TAlex.Common.Diagnostics.Providers** - provides WebRequestTraceListener, AzureTableTraceListener and AzureTableLogDataProvider.
* **TAlex.Common.Configuration** - contains XmlSettingsProvider and ConfigurationHelper.## Features
#### Extensions:
* **Assembly**: get title, description, product, copyright, etc. of assembly.
* **Expression**: get property name from expression.
* **String**: split string by newline delimeter.#### Services:
* **Undo**: provides ability to create undo/redo functionality in your apps.## Example of usage
In many cases helpfull be able to get property name without writting a string. For example you develop WPF application and you want to create DependencyProperty and for registering this property you must put property name as a string, on another common situation when you create view model and use ```INotifyPropertyChanged``` approach, to avoid painful situation when you will have a bug after inattentive renaming you can just use this extension:```C#
private class SimpleModel
{
public string Text { get; set; }public void TestMethod()
{
var textPropertyName = PropertyName.Get(() => Text);
Console.WriteLine(textPropertyName); // output will be Text
}
}
```## Get it on NuGet!
Install-Package TAlex.Common
Install-Package TAlex.Common.Diagnostics
Install-Package TAlex.Common.Diagnostics.Providers
Install-Package TAlex.Common.Configuration## License
TAlex.Common is under the [MIT license](LICENSE.md).