Project DescriptionSystem.Extension is an extension of the Framework 2.0. Contains a lot of common used, open source classes and methods. Their implementations are normally inherited from the originals.
Very First Version
The first implementation is the Default Format, a way to set format rules to the basic classes and structs like string, int, decimal, double, datetime, etc. This will give you a chance to control how this variables are displayed in WindowsControls and WebControls.
For example, if you want to show a cell with a long string in a Web Grid, you can set the DefaultFormat property by adding a MaxLenghtRule like this:
StringExt s = new StringExt("too long text");
s.DefaultFormat = new System.Format.IFormatRule[] { new MaxLength(10, true) };
ToString method returns "too lon...", because of parameters: MaxLenght and AddEllipsis are '10' and 'true' respectively.
There could be plenty of FormatRules, Classes and Methods. It depends in how many additions you and the community send!
Please visit
FullCoder.com for more information.
Code snippets are very welcome. Thank you very much.