Base class library for commonly occurring problems.
- 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.
- Assembly: get title, description, product, copyright, etc. of assembly.
- Expression: get property name from expression.
- String: split string by newline delimeter.
- Undo: provides ability to create undo/redo functionality in your apps.
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:
private class SimpleModel
{
public string Text { get; set; }
public void TestMethod()
{
var textPropertyName = PropertyName.Get(() => Text);
Console.WriteLine(textPropertyName); // output will be Text
}
}
Install-Package TAlex.Common
Install-Package TAlex.Common.Diagnostics
Install-Package TAlex.Common.Diagnostics.Providers
Install-Package TAlex.Common.Configuration
TAlex.Common is under the MIT license.