October 2005 Entries
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... “);...
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...
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....