After writing some code at my blog KeesTalksTech.com and having some code snippets laying around I decided to bundle them into a utility DLL. Makes things way easier to reference.
- Evaluation and Compilation are now seperate Nuget packages.
- AppSettingsProvider
Provides app settings from the .config to the application. Can be used to automatically fill settings objects using the convention: {namespace}.{class-name}.{field-name}
Added support for object properties and setting reuse using$settingName$
. - BoundingBox
A conceptual box that can be used to calculate new boxed based on the same resolution. - CacheCow
Provides a way to cache asynchronous requests. Very usable in data services that are asynchronous and need caching. - Interpreter
Maps JSON commands to methods of an interface to aid in RPC.
Check: How to dynamically map JSON commands to object methods in .Net? - MetafileUtility
Helps with saving EMF and WMF files to PNG or JPG (or any desired format supported by .Net).
Check: Rasterizing EMF files with C# / .Net - MVC Simple Forms Authentication
Simple - but obsolete - forms authentication where user, password and roles are stored in the web.config.
Check: Simple Database-less Authentication for MVC.Net - StreamUtility
Compares two streams.
- AppSettingsProvider
Provides app settings from the .config to the application. Can be used to automatically fill settings objects using the convention: {namespace}.{class-name}.{field-name}
Check: Auto fill settings objects with .config values - BetterWebClient
A (slightly) better version of .Net's default WebClient. The extra features include: ability to disable automatic redirect handling, sessions through a cookie container, indicate to the webserver that GZip compression can be used, exposure of the HTTP status code of the last request, exposure of any response header of the last request, ability to modify the request before it is send.
Check: A (slightly) better WebClient class. - BlockHasher
Helps with hashing streams, strings and other stuff.
Check: A BlockHasher helper class. - Evaluator
Helps with the generation of scripts into classes. It will compile and execute them. Uses anICompiler
object.
Check: An evaluator for simple script evaluation. - ICompiler
Interface for compilation. Implemented C# compilation through MS Code DOM and the Roslyn project.
Check: How to add dynamic compilation to your c# projects?.