Always remain updated about current software development trends
GenericParser is a C# implementation of a parser for delimited and fixed width format files.
Using expressions, you can achieve a faster result with less code.public static T New(){ Type t = typeof(T); Func method = Expression.Lambda>(Expression.Block(t, new Expression[] { Expression.New(t) })).Compile(); return method();}Furthermore, this...
After describing it so much, I felt the need to go ahead and implement it. So here goes...using System;using System.Collections.Generic;using System.ComponentModel;using System.Linq.Expressions;using System.Reflection;namespace DefaultValue{ /// ///...
A slight improvement over AdamDavidHill's version:public static SolidColorBrush GetColor(string s){ return new SolidColorBrush(ColorTranslator.FromHtml(s));}While it won't handle a missing "#", it is reusing what is built in already into .NET.
c# .net dev asp.net intermediate windows sql beginner silverlight advanced c++ javascript architect sql server wpf mysql html5 mobile c#4.0 jquery