Marshal.FreeCoTaskMem (ptr);
}
}
-#if NET_2_0
private const string NotSupported = "Not supported before Windows 2000 Service Pack 3";
private static char[] PlainText = new char[] { 'a', 'b', 'c' };
private static byte[] AsciiPlainText = new byte[] { (byte) 'a', (byte) 'b', (byte) 'c' };
Assert.Ignore (NotSupported);
}
}
-#endif
#if !NET_2_1
[Test]
Assert.IsNull (Marshal.PtrToStructure (IntPtr.Zero, typeof (SimpleStruct2)));
}
-#if NET_2_0
[Test]
public void TestGetExceptionForHR ()
{
ex = Marshal.GetExceptionForHR (E_INVALIDARG);
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "E_INVALIDARG");
}
-#endif
bool RunningOnUnix {
get {
int p = (int) Environment.OSVersion.Platform;