Showing posts with label Dot Net Framework. Show all posts
Showing posts with label Dot Net Framework. Show all posts

Tuesday, August 19, 2008

Sorted HashTable

Recently, I wanted a sorted HashTable.

After struggling with the System.Collections.HashTable, I remembered the definition of hash table.

What I really needed to use was the SortedList. So this is more a reminder that I need to find (or write) a users guide for the System.Collections part of the Framework.

Wednesday, July 23, 2008

Testing for Endianess

A colleague is studying for a Microsoft Interview.
One of the questions is to write code to test for Endian.
The answer Microsoft likes involves bit twiddling, but one wonders why they would not prefer calling their own framework:
using System;


using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace ConsoleApplication1

{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("BitConverter.IsLittleEndian " + BitConverter.IsLittleEndian.ToString());
Console.ReadLine();
}
}
}



Thursday, July 3, 2008

Mono Dot Net Framework

Novell picked up leadership of the Mono project from Ximian. Since the common language runtime and dot net languages like C# have been submitted (and approved ) as ECMA standards, it should be possible to port the Dot Net Framework, Common Language Runtime and Dot Net languages to other platforms.

This is the goal of the Mono project. It currently can be run on Linux, some Unix, BSD, Mac OS X, Solaris and even Windows OSes. To do this the JIT (just in time compiler) needs to support many chipsets the x86, SPARC, S390, 64 bit x86 and others.