Geeks With Blogs
Old blog. Blog moved to I would delete this...but I don't see the option October 2005 Entries
A Builder pattern for repeated string concatenation with separators
ever needed to something like this: for(int i=0;i<names.Length;i++) { displayNames+= names[i].ToString +“, “; } displayNames = displayNames.SubString(disp... 2); That stinks having to worry about that last concatentation. Builder pattern to the rescue. This class lets you concatenate strings with any character or string and never outputs the junk at the end. here is a usage example: ConcatBuilder commaConcat = ConcatBuilder.CreateCustomC... “); ......

Posted On Monday, October 31, 2005 7:21 PM

nifty class that abstracts an interval or range
the following class cleans up ugly code that tests whether value a is between value b and value c. it works with any class implementing IComparable. so stuff like this: if(myDate >= startDate && myDate <= endDate) .. becomes this: if(goodInterval.IsInInterva... ========================= <code> using System; namespace x.Utility{ public enum IntervalComparison { Inclusive =0, Exclusive } /// <summary> /// Provides interval needs, defaults to Inclusive on start and end ......

Posted On Monday, October 31, 2005 7:06 PM

are BizTalk and InfoPath in diametric opposition regarding web authentication and authorization?
scratching my head for the past few days... in our current SOA migration, i am running into an intrestring quandry. take a composable web service, GetStatusReports. so just how can i provide a suitable authentication and authorization schemes that agree with InfoPath AND BizTalk, where both are consumers of this service? InfoPath: Supports Integrated Windows Authentication Lacks Web Service Extensions (WSE 2.0) Custom authentication may not be suitable, as there is no secure place to store credentials. ......

Posted On Monday, October 31, 2005 6:55 PM

Copyright © Thomas Gathings | Powered by: