Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com 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) ......

Posted On Monday, May 7, 2012 10:26 PM

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"><... /// ......

Posted On Sunday, May 15, 2011 2:03 AM

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... ......

Posted On Monday, May 5, 2008 10:56 PM

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... ......

Posted On Sunday, March 2, 2008 11:07 PM

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, ......

Posted On Sunday, March 2, 2008 11:05 PM

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 ......

Posted On Thursday, October 18, 2007 2:31 AM

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() ......

Posted On Monday, October 8, 2007 1:06 AM

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 + "\">"; ......

Posted On Monday, October 8, 2007 1:01 AM

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 ......

Posted On Monday, October 8, 2007 12:44 AM

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 ......

Posted On Monday, October 8, 2007 12:42 AM

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 ......

Posted On Monday, October 1, 2007 11:46 PM

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); ......

Posted On Wednesday, September 12, 2007 6:37 PM

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... ......

Posted On Tuesday, July 17, 2007 12:51 AM

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 ......

Posted On Monday, June 25, 2007 11:55 PM

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() // { // ......

Posted On Wednesday, June 6, 2007 12:16 AM

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 ......

Posted On Tuesday, June 5, 2007 12:46 AM

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 ......

Posted On Tuesday, June 5, 2007 12:19 AM

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; ......

Posted On Friday, April 20, 2007 12:36 PM

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) ......

Posted On Friday, February 2, 2007 10:05 AM

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() { ......

Posted On Wednesday, January 3, 2007 11:05 AM

My SystemHelper 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 SystemHelper class: namespace FSHelperLib { using Iesi.Collections; using Microsoft.VisualBasic; using Microsoft.VisualBasic.Compi... using Microsoft.Win32; using System; using System.IO; using System.Collections; using System.Diagnostics ; using System.Reflection; using System.Runtime.CompilerServ... using System.Web; public class ......

Posted On Monday, August 14, 2006 9:10 AM

My StringHelper 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 StringHelper class. By the way, I recently found (in the article Concatenating Strings Efficiently), that using StringBuilder is often less efficient, than simple concatenation. Related posts:Helper functions to find pattern contaned in string from pattern List ProperCase function in C# using System;using System.Collections.Generic;... System.Linq;using ......

Posted On Thursday, July 13, 2006 8:16 AM

my DebugHelper and TraceHelper classes
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 DebugHelper and TraceHelper classes. namespace FSHelperLib { using Microsoft.VisualBasic; using Microsoft.VisualBasic.Compi... using System; using System.Collections; using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Collections.Specialized ; using System.IO; using System.Net; using System.Runtime.CompilerServ... ......

Posted On Thursday, July 13, 2006 8:13 AM

Update Dynamic Web reference URLs During Installation in Visual Studio 2005
I am using dynamic URLBehavior for some web services and during Setup changing web services URLs to appropriate value according to approach described in article “Walkthrough: Redirecting an Application to Target a Different XML Web Service During Installation “. As I already posted, Visual Studio 2005 changed the way where URLs are stored and now saves it inside section of config file. The differences between different types of projects are detailed described in post “How to share dynamic URLs across ......

Posted On Tuesday, May 9, 2006 8:16 AM

My DataHelper 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 DataHelper class. namespace FSHelperLib { using Microsoft.ApplicationBlocks... using Microsoft.VisualBasic; using Microsoft.VisualBasic.Compi... .Net Runtime using System; using System.Collections; using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Runtime.CompilerServ... using System.Text; ......

Posted On Monday, January 9, 2006 6:17 AM

Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net