>>Just to exercise my new found 'Effective C#' knowledge :-} :
static IEnumerable<char> GetChars(string s)
>> {
>> return Enumerable.Range(0, s.Length / 8).Select(i =>
>> Convert.ToChar(Convert.ToInt32(s.Substring(i * 8, 8),2)));
>> }
then
string result = string.Empty;
>>foreach (char c in GetChars(s1))
>>{
>> result += c;
>> }
>> Nothing like making it complicated when simple would do :-}
>
>
>haha - Well, at least you like the book - and it explores a few things
>
>
>I have the impression it can still be done in a shorter way - with lambda expressions - but I have not touched C# in 7 months
What have you been touching?
If it's not broken, fix it until it is.
My Blog