Helper Classes

My ListOfStringsHelper class

I am using a few helper classes. This post describes my ListOfStringsHelper class. #region Namespace Importsusing System;using System.Collections.Generic;... System.Globalization;using System.Linq;using System.Text;using System.Diagnostics;#endregion //Namespace Imports namespace Common{// using System.Collections; //See also StringArrayHelper.cs, CollectionsHelper.cs public static class ListOfStringsHelper { public static bool StringContainsAnyFromList(L... patternsList, string sMsg) ......

My EnglishGrammerHelper class

The class below is used to create adjustable messages using System; /// Summary description for EnglishGrammerHelper. /// </summary> public class EnglishGrammerHelper { public EnglishGrammerHelper() { // // TODO: Add constructor logic here // } /// <summary> /// Compiles sentence with person,verb and rest of the sentence /// </summary> /// <param name="person"></param... /// <param name="verb"></param> /// <param name="restSentence"><... /// ......

My QueryStringHelper class.

Previously I've posted a few Helper Classes . This post describes my QueryStringHelper class. using System; using System.Web; using System.Collections.Speciali... using System.Text; using System.Collections; /// <summary> /// Summary description for QueryStringHelper /// </summary> public class QueryStringHelper { //Consider to use HttpUtility.ParseQueryString // openSource alternative in MONO http://dsrg.mff.cuni.cz/pro... ......

my GridViewHelper class.

Previously I've posted a few Helper Classes . This post describes my GridViewHelper class. using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.W... using System.Web.UI.HtmlControls; using System.Diagnostics; public class GridViewHelper { //Copied from on WebFormsHelper class http://geekswithblogs.net/m... public static int ColumnIndexBySortExpression... ......

my ASP.NET ListControlHelper class

Previously I've posted a few Helper Classes . This post describes my ListControlHelper class using System.Net; using System.IO; using System.Diagnostics; using System.Collections.Speciali... using System.Web.UI.WebControls; using System.Data; public static class ListControlHelper { public static string EmptySelectionValue = "-1"; //'http://blogs.msdn.com/pi... public static void ControlBinding(ListControl ctrl, Dictionary<string, ......

DataSetHelper Class that I am using

Previously I've posted a few Helper Classes . This post describes DataSetHelper class, that mostly based on series of MSDN articles. However I did some modifications(e.g see posts DataSetHelper.SelectDistinct method for multiple columns and “Handling missing source columns in DataSetHelper.InsertInto method” ) using System; using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Collections; using Microsoft.ApplicationBlocks... using System.Collections.Generic; namespace ......

My HttpRequestHelper class

Previously I've posted a few Helper Classes . This post describes my HttpRequestHelper class. using System; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; ///<summary> /// Summary description for HttpRequestHelper. ///</summary> public class HttpRequestHelper { // Methods public HttpRequestHelper() { } // from http://groups.google.com.au... public static bool IsBrowserOnServer() ......

My HtmlHelper class

Previously I've posted a few Helper Classes . This post describes my HtmlHelper class: using System; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; ///<summary> /// Summary description for HtmlHelper. ///</summary> public class HtmlHelper { // Methods public HtmlHelper() { } public static void AddBookMark(Control parent, string bookMarkName) { LiteralControl control1 = new LiteralControl(); control1.Text = "<a name=\"" + bookMarkName + "\">"; ......

My StringArrayHelper class

Previously I've posted a few Helper Classes . This post describes my StringArrayHelper class: using Iesi.Collections; using Microsoft.VisualBasic; using Microsoft.VisualBasic.Compi... using System; using System.Collections; using System.Runtime.CompilerServ... using System.Xml; using System.Text; public static class StringArrayHelper { //created from CollectionsHelper.cs // Methods //'ignore new string, if already exist in the array // empty string considered as separate entry // function ......

My ArrayHelper class.

Previously I've posted a few Helper Classes . This post describes my ArrayHelper class. using System; using System.Collections; using System.Runtime.CompilerServ... using System.Xml; public static class ArrayHelper { public static void FillBytesRange(Array array,int indexStart,int indexEnd, byte value) { for (int i = indexStart; i <= indexEnd; i++) { Buffer.SetByte(array, i, value); } } }//end of class ArrayHelper ......

my UriHelper class.

Previously I've posted a few Helper Classes . This post describes my UriHelper class. using System; using System.Web; using System.Collections.Speciali... using System.Text; using System.Collections; using System.Diagnostics; using Microsoft.VisualBasic; /// <summary> /// Summary description for UriHelper. /// </summary> //There are helper classes available with some functionality that can be useful //http://codeproject.com/as... "A small Class for simplifying ......

My DateTimeHelper class

Previously I've posted a few Helper Classes . This post describes my DateTimeHelper class. using System; using System.Collections.Generic; using System.Text; using Microsoft.VisualBasic.Compi... using Microsoft.VisualBasic; using System.Diagnostics; public static class DateTimeHelper { public static DateTime DateAndTime(DateTime dateValue, DateTime timeValue) { DateTime time2; time2 = new DateTime(dateValue.Year, dateValue.Month, dateValue.Day, timeValue.Hour, timeValue.Minute, timeValue.Second); ......

My CollectionsHelper class

Previously I've posted a few Helper Classes . This post describes my CollectionsHelper class. ///<summary> /// //from http://diditwith.net/PermaL... ///</summary> ///<example> ///<code> ///</code> ///</example> public static class CollectionsHelper { /*When C# extensions will be available( promised in C# 3, add this keyword to parameter * public static bool IsNullOrEmpty(this ICollection c) //from http://diditwith.net/PermaL... ......

My DataBinderHelper class.

Previously I've posted a few Helper Classes . This post describes my DataBinderHelper class. using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; using System.Web.UI; public class DataBinderHelper { public static bool IsPropertyExist(object container, string propName) { if (container == null) { throw new ArgumentNullException("cont... } if (string.IsNullOrEmpty(propN... { throw new ArgumentNullException("prop... } PropertyDescriptor descriptor1 ......

My RegexMatchsHelper class

Previously I've posted a few Helper Classes . This post describes my RegexMatchsHelper class I also added a few related links: Use Regular Expressions to Constrain Input in ASP.NET using System; using System.Diagnostics; using System.Text.RegularExpressi... ///<summary> /// Summary description for RegexMatchs. ///</summary> public class RegexMatchsHelper { public RegexMatchsHelper() { // // TODO: Add constructor logic here // } // public static void RetrieveMatchedStringTest() // { // ......

My StreamHelper class

Previously I've posted a few Helper Classes . This post describes my StreamHelper class using Microsoft.VisualBasic; using System; using System.IO; using System.Reflection; using System.Text; using System.Diagnostics; public class StreamHelper { // 'See also FxLib Author: Kamal Patel, Rick Hodder // 'Find the first entry of sToFing and returns the string after it // 'See also FxLib StringExtract (and StuffString) // Methods public StreamHelper() { } #region "Stream and Resources Functions" //C# version ......

My HttpWebRequestHelper class

Previously I've posted a few Helper Classes . This post describes my HttpWebRequestHelper class: using System; using System.Text.RegularExpressi... using System.IO; using System.Diagnostics ; using System.Net; namespace FSHelperLib { using System; using System.Text; // clarification from http://www.dotnetsmart.com/... // System.Web.HttpRequest is a class used on the server and inside an ASP.NET application. It represents the *incoming* request from a client. // System.Net.HttpWebRequest ......

My EnumHelper class

Previously I've posted a few Helper Classes . This post describes my EnumHelper class. The class uses other helper classes, in particular CollectionsHelper Related links: Overriding ToString on enum, Mapping Text to Enum entries . Enum Helper Class Using Generics , My new little friend, Enum<T>, Making C# enums more usable - the Parse() method https://connect.microsoft.c... using System; using System.Collections.Generic; using System.Text; ......

My FileHelper class

I've posted a few code snippets and some people noticed that there are references to unresolved methods.I am using a few helper classes. This post describes my FileHelper class: System.IO; /// <summary> /// Summary description for FileHelper. using /// See also StreamHelper class methods, e.g. SaveStringToFile,SaveToFile /// </summary> public static class FileHelper { public static string GetFileExtensionWithoutDot(... fileName) { string sExt=Path.GetExtension(file... if ((null==sExt) ......

My JScriptHelper class

I've posted a few code snippets and some people noticed that there are references to unresolved methods.I am using a few helper classes. This post describes my JScriptHelper class /// <summary> /// The JScriptHelper class should be a replacer of VB ClientScriptsHelper. /// However VB ClientScriptsHelper has calls to embedded resources, so it is not too easy to move /// TODO move VB methods to JScriptHelper in stages. /// </summary> public class JScriptHelper { public JScriptHelper() { ......

Full Helper Classes Archive

«April»
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910