#define compileErrorsNot

using System;
using System.Data;
using System.Data.SqlTypes;

class app
{
	static void Main()
	{
		SqlString s = new SqlString("1.01");
		SqlMoney m = (SqlMoney)s;
		Console.WriteLine(m);
		SqlString s2 = "{90110409-6000-11D3-8CFE-0150048383C9}";
		SqlGuid g = (SqlGuid)s2;
		// this is not a properly formated GUID
		// and 
		s2 = "90110409-6000-11D3-8CFE-0150048383C9";
		g = (SqlGuid)s2;
		Console.WriteLine(g);
		Console.WriteLine(g.IsNull);
		SqlInt32 si = 3;
#if compileErrors
		int i = si;
		Console.WriteLine(i.ToString() + " " + si);
#endif
		double d =Double.NaN;
		SqlDouble sd = 0;
		try
		{
			sd = d;
		}
		catch
		{
			Console.WriteLine("Setting SqlDouble to NaN failed");
		}
		d =Double.PositiveInfinity;
		try
		{
			sd = d;
		}
		catch
		{
			Console.WriteLine("Setting SqlDouble to Infinity failed");
		}
		Console.WriteLine(sd);
	}
}

