[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog runtime/Microsoft/Win32/SafeH...
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog runtime/Microsoft/Win32/SafeH... |
Date: |
Tue, 03 Feb 2009 20:13:22 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnetlib
Changes by: Klaus Treichel <ktreichel> 09/02/03 20:13:21
Modified files:
. : ChangeLog
runtime/Microsoft/Win32/SafeHandles:
CriticalHandleMinusOneIsInvalid.cs
CriticalHandleZeroOrMinusOneIsInvalid.cs
SafeFileHandle.cs
SafeHandleMinusOneIsInvalid.cs
SafeHandleZeroOrMinusOneIsInvalid.cs
SafeWaitHandle.cs
runtime/System/Reflection: AssemblyNameFlags.cs
runtime/System/Runtime/ConstrainedExecution: Consistency.cs
CriticalFinalizerObject.cs
PrePrepareMethodAttribute.cs
ReliabilityContractAttribute.cs
runtime/System/Runtime/InteropServices: CriticalHandle.cs
SafeHandle.cs
Added files:
runtime/System/Reflection: ExceptionHandlingClauseOptions.cs
ImageFileMachine.cs
PortableExecutableKinds.cs
ProcessorArchitecture.cs
ObfuscateAssemblyAttribute.cs
ObfuscationAttribute.cs
runtime/System/Runtime/ConstrainedExecution: Cer.cs
runtime/System/Runtime: GCLatencyMode.cs
Removed files:
runtime/System/Runtime/ConstrainedExecution: CER.cs
Log message:
Add more 2.0 stuff.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2556&r2=1.2557
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/Microsoft/Win32/SafeHandles/CriticalHandleMinusOneIsInvalid.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/Microsoft/Win32/SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeFileHandle.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeHandleMinusOneIsInvalid.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeWaitHandle.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Reflection/AssemblyNameFlags.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Reflection/ExceptionHandlingClauseOptions.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Reflection/ImageFileMachine.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Reflection/PortableExecutableKinds.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Reflection/ProcessorArchitecture.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Reflection/ObfuscateAssemblyAttribute.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Reflection/ObfuscationAttribute.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/ConstrainedExecution/Consistency.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/ConstrainedExecution/ReliabilityContractAttribute.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/ConstrainedExecution/Cer.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/ConstrainedExecution/CER.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/InteropServices/CriticalHandle.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/InteropServices/SafeHandle.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/GCLatencyMode.cs?cvsroot=dotgnu-pnet&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2556
retrieving revision 1.2557
diff -u -b -r1.2556 -r1.2557
--- ChangeLog 2 Feb 2009 10:47:21 -0000 1.2556
+++ ChangeLog 3 Feb 2009 20:13:18 -0000 1.2557
@@ -1,3 +1,42 @@
+2009-02-03 Klaus Treichel <address@hidden>
+
+ * runtime/System/Reflection/AssemblyNameFlags.cs: Add new 2.0 members.
+
+ *
runtime/Microsoft/Win32/SafeHandles/CriticalHandleMinusOneIsInvalid.cs,
+
runtime/Microsoft/Win32/SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs,
+ runtime/Microsoft/Win32/SafeHandles/SafeFileHandle.cs,
+ runtime/Microsoft/Win32/SafeHandles/SafeHandleMinusOneIsInvalid.cs,
+
runtime/Microsoft/Win32/SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs,
+ runtime/Microsoft/Win32/SafeHandles/SafeWaitHandle.cs: Include in build
+ only for non compact builds and add missing ReliabilityContract
attributes.
+
+ * runtime/System/Runtime/ConstrainedExecution/Consistency.cs,
+ runtime/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.cs,
+
runtime/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs,
+
runtime/System/Runtime/ConstrainedExecution/ReliabilityContractAttribute.cs:
+ Include in build only for non compact builds, add missing
+ ReliabilityContract attributes and rename CER to Cer.
+
+ * runtime/System/Runtime/InteropServices/CriticalHandle.cs,
+ runtime/System/Runtime/InteropServices/SafeHandle.cs: Include in build
+ only for non compact builds, rename CER to Cer.
+
+ * runtime/System/Runtime/ConstrainedExecution/CER.cs: Move to
+ runtime/System/Runtime/ConstrainedExecution/Cer.cs.
+
+ * runtime/System/Runtime/ConstrainedExecution/Cer.cs: Move
+ runtime/System/Runtime/ConstrainedExecution/CER.cs to here and rename
+ class accordingly.
+
+ * runtime/System/Reflection/ExceptionHandlingClauseOptions.cs,
+ runtime/System/Reflection/ImageFileMachine.cs,
+ runtime/System/Reflection/PortableExecutableKinds.cs,
+ runtime/System/Reflection/ProcessorArchitecture.cs,
+ runtime/System/Runtime/GCLatencyMode.cs: Add some 2.0 enumerations.
+
+ * runtime/System/Reflection/ObfuscateAssemblyAttribute.cs,
+ runtime/System/Reflection/ObfuscationAttribute.cs: Add some 2.0
attributes.
+
2009-02-02 Heiko Weiss <address@hidden>
* csupport/FDStream.cs,
Index: runtime/Microsoft/Win32/SafeHandles/CriticalHandleMinusOneIsInvalid.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32/SafeHandles/CriticalHandleMinusOneIsInvalid.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- runtime/Microsoft/Win32/SafeHandles/CriticalHandleMinusOneIsInvalid.cs
24 Jun 2007 13:32:19 -0000 1.2
+++ runtime/Microsoft/Win32/SafeHandles/CriticalHandleMinusOneIsInvalid.cs
3 Feb 2009 20:13:19 -0000 1.3
@@ -22,14 +22,17 @@
namespace Microsoft.Win32.SafeHandles
{
-#if CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#if CONFIG_WIN32_SPECIFICS
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
using System;
using System.Runtime.InteropServices;
+using System.Runtime.ConstrainedExecution;
public abstract class CriticalHandleMinusOneIsInvalid : CriticalHandle
{
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected CriticalHandleMinusOneIsInvalid()
: base(new IntPtr(-1L)) {}
@@ -44,6 +47,7 @@
}; // class CriticalHandleMinusOneIsInvalid
-#endif // CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+#endif // CONFIG_WIN32_SPECIFICS
}; // namespace Microsoft.Win32.SafeHandles
Index:
runtime/Microsoft/Win32/SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32/SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
---
runtime/Microsoft/Win32/SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
24 Jun 2007 13:32:19 -0000 1.2
+++
runtime/Microsoft/Win32/SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
3 Feb 2009 20:13:19 -0000 1.3
@@ -22,14 +22,17 @@
namespace Microsoft.Win32.SafeHandles
{
-#if CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#if CONFIG_WIN32_SPECIFICS
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
using System;
using System.Runtime.InteropServices;
+using System.Runtime.ConstrainedExecution;
public abstract class CriticalHandleZeroOrMinusOneIsInvalid : CriticalHandle
{
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected CriticalHandleZeroOrMinusOneIsInvalid()
: base(new IntPtr(-1L)) {}
@@ -45,6 +48,7 @@
}; // class CriticalHandleZeroOrMinusOneIsInvalid
-#endif // CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+#endif // CONFIG_WIN32_SPECIFICS
}; // namespace Microsoft.Win32.SafeHandles
Index: runtime/Microsoft/Win32/SafeHandles/SafeFileHandle.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeFileHandle.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- runtime/Microsoft/Win32/SafeHandles/SafeFileHandle.cs 24 Jun 2007
13:32:19 -0000 1.2
+++ runtime/Microsoft/Win32/SafeHandles/SafeFileHandle.cs 3 Feb 2009
20:13:19 -0000 1.3
@@ -22,15 +22,12 @@
namespace Microsoft.Win32.SafeHandles
{
-#if CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#if CONFIG_WIN32_SPECIFICS
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
using System;
using System.Runtime.InteropServices;
-#if CONFIG_FRAMEWORK_2_0
using System.Runtime.ConstrainedExecution;
-#else
-using System.Runtime.Reliability;
-#endif
public sealed class SafeFileHandle : SafeHandleZeroOrMinusOneIsInvalid
{
@@ -46,7 +43,6 @@
extern private static bool CloseHandle(IntPtr handle);
// Release the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
protected override bool ReleaseHandle()
{
return CloseHandle(handle);
@@ -54,6 +50,7 @@
}; // class SafeFileHandle
-#endif // CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+#endif // CONFIG_WIN32_SPECIFICS
}; // namespace Microsoft.Win32.SafeHandles
Index: runtime/Microsoft/Win32/SafeHandles/SafeHandleMinusOneIsInvalid.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeHandleMinusOneIsInvalid.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- runtime/Microsoft/Win32/SafeHandles/SafeHandleMinusOneIsInvalid.cs 24 Jun
2007 13:32:19 -0000 1.2
+++ runtime/Microsoft/Win32/SafeHandles/SafeHandleMinusOneIsInvalid.cs 3 Feb
2009 20:13:19 -0000 1.3
@@ -22,14 +22,17 @@
namespace Microsoft.Win32.SafeHandles
{
-#if CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#if CONFIG_WIN32_SPECIFICS
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
using System;
using System.Runtime.InteropServices;
+using System.Runtime.ConstrainedExecution;
public abstract class SafeHandleMinusOneIsInvalid : SafeHandle
{
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected SafeHandleMinusOneIsInvalid(bool ownsHandle)
: base(new IntPtr(-1L), ownsHandle) {}
@@ -44,6 +47,7 @@
}; // class SafeHandleMinusOneIsInvalid
-#endif // CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+#endif // CONFIG_WIN32_SPECIFICS
}; // namespace Microsoft.Win32.SafeHandles
Index: runtime/Microsoft/Win32/SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- runtime/Microsoft/Win32/SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
24 Jun 2007 13:32:19 -0000 1.2
+++ runtime/Microsoft/Win32/SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
3 Feb 2009 20:13:19 -0000 1.3
@@ -22,14 +22,17 @@
namespace Microsoft.Win32.SafeHandles
{
-#if CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#if CONFIG_WIN32_SPECIFICS
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
using System;
using System.Runtime.InteropServices;
+using System.Runtime.ConstrainedExecution;
public abstract class SafeHandleZeroOrMinusOneIsInvalid : SafeHandle
{
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected SafeHandleZeroOrMinusOneIsInvalid(bool ownsHandle)
: base(new IntPtr(-1L), ownsHandle) {}
@@ -45,6 +48,7 @@
}; // class SafeHandleZeroOrMinusOneIsInvalid
-#endif // CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+#endif // CONFIG_WIN32_SPECIFICS
}; // namespace Microsoft.Win32.SafeHandles
Index: runtime/Microsoft/Win32/SafeHandles/SafeWaitHandle.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32/SafeHandles/SafeWaitHandle.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/Microsoft/Win32/SafeHandles/SafeWaitHandle.cs 24 Jun 2007
13:32:19 -0000 1.1
+++ runtime/Microsoft/Win32/SafeHandles/SafeWaitHandle.cs 3 Feb 2009
20:13:19 -0000 1.2
@@ -22,19 +22,17 @@
namespace Microsoft.Win32.SafeHandles
{
-#if CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#if CONFIG_WIN32_SPECIFICS
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
using System;
using System.Runtime.InteropServices;
-#if CONFIG_FRAMEWORK_2_0
using System.Runtime.ConstrainedExecution;
-#else
-using System.Runtime.Reliability;
-#endif
public sealed class SafeWaitHandle : SafeHandleZeroOrMinusOneIsInvalid
{
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
public SafeWaitHandle(IntPtr existingHandle, bool ownsHandle)
: base(ownsHandle)
{
@@ -46,7 +44,6 @@
extern private static bool CloseHandle(IntPtr handle);
// Release the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
protected override bool ReleaseHandle()
{
return CloseHandle(handle);
@@ -54,6 +51,7 @@
}; // class SafeWaitHandle
-#endif // CONFIG_WIN32_SPECIFICS && CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+#endif // CONFIG_WIN32_SPECIFICS
}; // namespace Microsoft.Win32.SafeHandles
Index: runtime/System/Reflection/AssemblyNameFlags.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/AssemblyNameFlags.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- runtime/System/Reflection/AssemblyNameFlags.cs 23 Apr 2003 05:39:49
-0000 1.2
+++ runtime/System/Reflection/AssemblyNameFlags.cs 3 Feb 2009 20:13:19
-0000 1.3
@@ -3,6 +3,7 @@
* "System.Reflection.AssemblyNameFlags" class.
*
* Copyright (C) 2001, 2003 Southern Storm Software, Pty Ltd.
+ * Copyright (C) 2009 Free Software Foundation Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,13 +24,23 @@
{
#if !ECMA_COMPAT
+#if CONFIG_FRAMEWORK_2_0
+using System.Runtime.InteropServices;
+[ComVisible(true)]
+#endif // CONFIG_FRAMEWORK_2_0
+[Serializable]
[Flags]
public enum AssemblyNameFlags
{
None = 0x0000,
PublicKey = 0x0001,
Retargetable = 0x0100
+#if CONFIG_FRAMEWORK_2_0
+ ,
+ EnableJITcompileOptimizer = 0x4000,
+ EnableJITcompileTracking = 0x8000
+#endif // CONFIG_FRAMEWORK_2_0
}; // enum AssemblyNameFlags
Index: runtime/System/Runtime/ConstrainedExecution/Consistency.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/ConstrainedExecution/Consistency.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/System/Runtime/ConstrainedExecution/Consistency.cs 22 Jul 2004
04:15:00 -0000 1.1
+++ runtime/System/Runtime/ConstrainedExecution/Consistency.cs 3 Feb 2009
20:13:20 -0000 1.2
@@ -22,13 +22,9 @@
namespace System.Runtime.ConstrainedExecution
{
-using System.Runtime.InteropServices;
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
-#if CONFIG_FRAMEWORK_2_0
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
+[Serializable]
public enum Consistency
{
MayCorruptProcess = 0,
@@ -38,6 +34,6 @@
}; // enum Consistency
-#endif // CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
}; // namespace System.Runtime.ConstrainedExecution
Index: runtime/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.cs
22 Jul 2004 04:15:00 -0000 1.1
+++ runtime/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.cs
3 Feb 2009 20:13:20 -0000 1.2
@@ -22,18 +22,23 @@
namespace System.Runtime.ConstrainedExecution
{
-#if CONFIG_FRAMEWORK_2_0
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[ComVisible(true)]
public abstract class CriticalFinalizerObject
{
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected CriticalFinalizerObject() {}
// Destructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
~CriticalFinalizerObject() {}
}; // class CriticalFinalizerObject
-#endif // CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
}; // namespace System.Runtime.ConstrainedExecution
Index: runtime/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs
22 Jul 2004 04:15:00 -0000 1.1
+++ runtime/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs
3 Feb 2009 20:13:20 -0000 1.2
@@ -22,13 +22,8 @@
namespace System.Runtime.ConstrainedExecution
{
-using System.Runtime.InteropServices;
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
-#if CONFIG_FRAMEWORK_2_0
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor,
Inherited=false)]
public sealed class PrePrepareMethodAttribute : Attribute
@@ -38,6 +33,6 @@
}; // class PrePrepareMethodAttribute
-#endif // CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
}; // namespace System.Runtime.ConstrainedExecution
Index:
runtime/System/Runtime/ConstrainedExecution/ReliabilityContractAttribute.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/ConstrainedExecution/ReliabilityContractAttribute.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/System/Runtime/ConstrainedExecution/ReliabilityContractAttribute.cs
22 Jul 2004 04:15:00 -0000 1.1
+++ runtime/System/Runtime/ConstrainedExecution/ReliabilityContractAttribute.cs
3 Feb 2009 20:13:21 -0000 1.2
@@ -22,13 +22,8 @@
namespace System.Runtime.ConstrainedExecution
{
-using System.Runtime.InteropServices;
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
-#if CONFIG_FRAMEWORK_2_0
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
[AttributeUsage(AttributeTargets.Method |
AttributeTargets.Constructor |
AttributeTargets.Struct |
@@ -40,12 +35,11 @@
{
// Internal state.
private Consistency consistencyGuarantee;
- private CER cer;
+ private Cer cer;
// Constructor.
- public ReliabilityContractAttribute() {}
public ReliabilityContractAttribute
- (Consistency consistencyGuarantee, CER cer)
+ (Consistency consistencyGuarantee, Cer cer)
{
this.consistencyGuarantee =
consistencyGuarantee;
this.cer = cer;
@@ -58,25 +52,18 @@
{
return consistencyGuarantee;
}
- set
- {
- consistencyGuarantee = value;
- }
}
- public CER CER
+
+ public Cer Cer
{
get
{
return cer;
}
- set
- {
- cer = value;
- }
}
}; // class ReliabilityContractAttribute
-#endif // CONFIG_FRAMEWORK_2_0
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
}; // namespace System.Runtime.ConstrainedExecution
Index: runtime/System/Runtime/InteropServices/CriticalHandle.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/CriticalHandle.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/System/Runtime/InteropServices/CriticalHandle.cs 22 Jul 2004
07:12:35 -0000 1.1
+++ runtime/System/Runtime/InteropServices/CriticalHandle.cs 3 Feb 2009
20:13:21 -0000 1.2
@@ -3,6 +3,7 @@
* "System.Runtime.InteropServices.CriticalHandle" class.
*
* Copyright (C) 2004 Southern Storm Software, Pty Ltd.
+ * Copyright (C) 2009 Free Software Foundation Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,26 +23,19 @@
namespace System.Runtime.InteropServices
{
-#if CONFIG_FRAMEWORK_2_0
-using System.Runtime.ConstrainedExecution;
-#else
-using System.Runtime.Reliability;
-#endif
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
-#if CONFIG_FRAMEWORK_1_2
+using System.Runtime.ConstrainedExecution;
public abstract class CriticalHandle
-#if CONFIG_FRAMEWORK_2_0
: CriticalFinalizerObject, IDisposable
-#else
- : IDisposable
-#endif
{
// Internal state.
protected IntPtr handle;
private bool closed;
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected CriticalHandle(IntPtr invalidHandleValue)
{
this.handle = invalidHandleValue;
@@ -49,39 +43,39 @@
}
// Destructor.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
~CriticalHandle()
{
Destroy();
}
// Close this handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void Close()
{
Destroy();
}
// Implement the IDisposable interface.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void Dispose()
{
Destroy();
}
// Release the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
protected abstract bool ReleaseHandle();
// Set the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
protected void SetHandle(IntPtr handle)
{
this.handle = handle;
}
// Set the handle to invalid.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void SetHandleAsInvalid()
{
this.closed = true;
@@ -91,7 +85,7 @@
public bool IsClosed
{
[ReliabilityContract(Consistency.WillNotCorruptState,
-
CER.Success)]
+
Cer.Success)]
get
{
return closed;
@@ -102,7 +96,7 @@
public abstract bool IsInvalid
{
[ReliabilityContract(Consistency.WillNotCorruptState,
-
CER.Success)]
+
Cer.Success)]
get;
}
@@ -122,6 +116,6 @@
}; // class CriticalHandle
-#endif // CONFIG_FRAMEWORK_1_2
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
}; // namespace System.Runtime.InteropServices
Index: runtime/System/Runtime/InteropServices/SafeHandle.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/SafeHandle.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/System/Runtime/InteropServices/SafeHandle.cs 22 Jul 2004
07:12:35 -0000 1.1
+++ runtime/System/Runtime/InteropServices/SafeHandle.cs 3 Feb 2009
20:13:21 -0000 1.2
@@ -22,20 +22,12 @@
namespace System.Runtime.InteropServices
{
-#if CONFIG_FRAMEWORK_2_0
-using System.Runtime.ConstrainedExecution;
-#else
-using System.Runtime.Reliability;
-#endif
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
-#if CONFIG_FRAMEWORK_1_2
+using System.Runtime.ConstrainedExecution;
public abstract class SafeHandle
-#if CONFIG_FRAMEWORK_2_0
: CriticalFinalizerObject, IDisposable
-#else
- : IDisposable
-#endif
{
// Internal state.
protected IntPtr handle;
@@ -43,6 +35,7 @@
private bool closed;
// Constructor.
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected SafeHandle(IntPtr invalidHandleValue, bool ownsHandle)
{
this.handle = invalidHandleValue;
@@ -57,18 +50,35 @@
// Destructor.
~SafeHandle()
{
- Destroy();
+ Dispose(false);
+ }
+
+ // Dispose
+ protected virtual void Dispose(bool disposing)
+ {
+ if(!IsClosed)
+ {
+ closed = true;
+ if(!IsInvalid)
+ {
+ ReleaseHandle();
+ }
+ }
+ if(disposing)
+ {
+ GC.SuppressFinalize(this);
+ }
}
// Close this handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void Close()
{
- Dispose();
+ Dispose(true);
}
// Perform a reference add.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.MayFail)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
public void DangerousAddRef(ref bool success)
{
// Nothing to do in this implementation.
@@ -76,39 +86,39 @@
}
// Get the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public IntPtr DangerousGetHandle()
{
return handle;
}
// Release the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void DangerousRelease()
{
- Destroy();
+ // Nothing to do in this implementation.
}
// Implement the IDisposable interface.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void Dispose()
{
- Destroy();
+ Dispose(true);
}
// Release the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
protected abstract bool ReleaseHandle();
// Set the handle.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
protected void SetHandle(IntPtr handle)
{
this.handle = handle;
}
// Set the handle to invalid.
- [ReliabilityContract(Consistency.WillNotCorruptState, CER.Success)]
+ [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void SetHandleAsInvalid()
{
this.closed = true;
@@ -118,7 +128,7 @@
public bool IsClosed
{
[ReliabilityContract(Consistency.WillNotCorruptState,
-
CER.Success)]
+
Cer.Success)]
get
{
return closed;
@@ -129,26 +139,12 @@
public abstract bool IsInvalid
{
[ReliabilityContract(Consistency.WillNotCorruptState,
-
CER.Success)]
+
Cer.Success)]
get;
}
- // Destroy this handle.
- private void Destroy()
- {
- if(!IsClosed)
- {
- closed = true;
- if(!IsInvalid)
- {
- ReleaseHandle();
- GC.SuppressFinalize(this);
- }
- }
- }
-
}; // class SafeHandle
-#endif // CONFIG_FRAMEWORK_1_2
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
}; // namespace System.Runtime.InteropServices
Index: runtime/System/Reflection/ExceptionHandlingClauseOptions.cs
===================================================================
RCS file: runtime/System/Reflection/ExceptionHandlingClauseOptions.cs
diff -N runtime/System/Reflection/ExceptionHandlingClauseOptions.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Reflection/ExceptionHandlingClauseOptions.cs 3 Feb 2009
20:13:19 -0000 1.1
@@ -0,0 +1,41 @@
+/*
+ * ExceptionHandlingClauseOptions.cs - Implementation of the
+ * "System.Reflection.ExceptionHandlingClauseOptions"
enumeration.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Reflection
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[ComVisible(true)]
+[Flags]
+public enum ExceptionHandlingClauseOptions
+{
+ Clause = 0x00,
+ Filter = 0x01,
+ Finally = 0x02,
+ Fault = 0x04
+
+}; // enum ExceptionHandlingClauseOptions
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Reflection
Index: runtime/System/Reflection/ImageFileMachine.cs
===================================================================
RCS file: runtime/System/Reflection/ImageFileMachine.cs
diff -N runtime/System/Reflection/ImageFileMachine.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Reflection/ImageFileMachine.cs 3 Feb 2009 20:13:20
-0000 1.1
@@ -0,0 +1,40 @@
+/*
+ * ImageFileMachine.cs - Implementation of the
+ * "System.Reflection.ImageFileMachine" enumeration.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Reflection
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[ComVisible(true)]
+[Serializable]
+public enum ImageFileMachine
+{
+ I386 = 0x14C,
+ IA64 = 0x200,
+ AMD64 = 0x8664
+
+}; // enum ImageFileMachine
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Reflection
Index: runtime/System/Reflection/PortableExecutableKinds.cs
===================================================================
RCS file: runtime/System/Reflection/PortableExecutableKinds.cs
diff -N runtime/System/Reflection/PortableExecutableKinds.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Reflection/PortableExecutableKinds.cs 3 Feb 2009
20:13:20 -0000 1.1
@@ -0,0 +1,43 @@
+/*
+ * PortableExecutableKinds.cs - Implementation of the
+ * "System.Reflection.PortableExecutableKinds" enumeration.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Reflection
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[Serializable]
+[Flags]
+[ComVisible(true)]
+public enum PortableExecutableKinds
+{
+ NotAPortableExecutableImage = 0x00,
+ ILOnly = 0x01,
+ Required32Bit = 0x02,
+ PE32Plus = 0x04,
+ Unmanaged32Bit = 0x08
+
+}; // enum PortableExecutableKinds
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Reflection
Index: runtime/System/Reflection/ProcessorArchitecture.cs
===================================================================
RCS file: runtime/System/Reflection/ProcessorArchitecture.cs
diff -N runtime/System/Reflection/ProcessorArchitecture.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Reflection/ProcessorArchitecture.cs 3 Feb 2009 20:13:20
-0000 1.1
@@ -0,0 +1,42 @@
+/*
+ * ProcessorArchitecture.cs - Implementation of the
+ * "System.Reflection.ProcessorArchitecture" enumeration.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Reflection
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[Serializable]
+[ComVisible(true)]
+public enum ProcessorArchitecture
+{
+ None = 0,
+ MSIL = 1,
+ X86 = 2,
+ IA64 = 3,
+ Amd64 = 4
+
+}; // enum ProcessorArchitecture
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Reflection
Index: runtime/System/Reflection/ObfuscateAssemblyAttribute.cs
===================================================================
RCS file: runtime/System/Reflection/ObfuscateAssemblyAttribute.cs
diff -N runtime/System/Reflection/ObfuscateAssemblyAttribute.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Reflection/ObfuscateAssemblyAttribute.cs 3 Feb 2009
20:13:20 -0000 1.1
@@ -0,0 +1,66 @@
+/*
+ * ObfuscateAssemblyAttribute.cs - Implementation of the
+ * "System.Reflection.ObfuscateAssemblyAttribute" class.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Reflection
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[ComVisible(true)]
+[AttributeUsage(AttributeTargets.Assembly,
+ AllowMultiple = false, Inherited = false)]
+public sealed class ObfuscateAssemblyAttribute : Attribute
+{
+ private bool assemblyIsPrivate;
+ private bool stripAfterObfuscation;
+
+ public ObfuscateAssemblyAttribute(bool assemblyIsPrivate)
+ {
+ this.assemblyIsPrivate = assemblyIsPrivate;
+ this.stripAfterObfuscation = true;
+ }
+
+ public bool AssemblyIsPrivate
+ {
+ get
+ {
+ return assemblyIsPrivate;
+ }
+ }
+
+ public bool StripAfterObfuscation
+ {
+ get
+ {
+ return stripAfterObfuscation;
+ }
+ set
+ {
+ stripAfterObfuscation = value;
+ }
+ }
+
+}; // class ObfuscateAssemblyAttribute
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Reflection
Index: runtime/System/Reflection/ObfuscationAttribute.cs
===================================================================
RCS file: runtime/System/Reflection/ObfuscationAttribute.cs
diff -N runtime/System/Reflection/ObfuscationAttribute.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Reflection/ObfuscationAttribute.cs 3 Feb 2009 20:13:20
-0000 1.1
@@ -0,0 +1,108 @@
+/*
+ * ObfuscationAttribute.cs - Implementation of the
+ * "System.Reflection.ObfuscationAttribute" class.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Reflection
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[ComVisible(true)]
+[AttributeUsage(AttributeTargets.Assembly |
+ AttributeTargets.Class |
+ AttributeTargets.Struct |
+ AttributeTargets.Enum |
+ AttributeTargets.Method |
+ AttributeTargets.Property |
+ AttributeTargets.Field |
+ AttributeTargets.Event |
+ AttributeTargets.Interface |
+ AttributeTargets.Parameter |
+ AttributeTargets.Delegate,
+ AllowMultiple = true, Inherited = false)]
+public sealed class ObfuscationAttribute : Attribute
+{
+ private bool applyToMembers;
+ private bool exclude;
+ private bool stripAfterObfuscation;
+ private string feature;
+
+ public ObfuscationAttribute()
+ {
+ applyToMembers = true;
+ exclude = true;
+ stripAfterObfuscation = true;
+ feature = "all";
+ }
+
+ public bool ApplyToMembers
+ {
+ get
+ {
+ return applyToMembers;
+ }
+ set
+ {
+ applyToMembers = value;
+ }
+ }
+
+ public bool Exclude
+ {
+ get
+ {
+ return exclude;
+ }
+ set
+ {
+ exclude = value;
+ }
+ }
+
+ public string Feature
+ {
+ get
+ {
+ return feature;
+ }
+ set
+ {
+ feature = value;
+ }
+ }
+
+ public bool StripAfterObfuscation
+ {
+ get
+ {
+ return stripAfterObfuscation;
+ }
+ set
+ {
+ stripAfterObfuscation = value;
+ }
+ }
+
+}; // class ObfuscationAttribute
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Reflection
Index: runtime/System/Runtime/ConstrainedExecution/Cer.cs
===================================================================
RCS file: runtime/System/Runtime/ConstrainedExecution/Cer.cs
diff -N runtime/System/Runtime/ConstrainedExecution/Cer.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Runtime/ConstrainedExecution/Cer.cs 3 Feb 2009 20:13:21
-0000 1.1
@@ -0,0 +1,38 @@
+/*
+ * Cer.cs - Implementation of the
+ * "System.Runtime.ConstrainedExecution.Cer" enumeration.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Runtime.ConstrainedExecution
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+[Serializable]
+public enum Cer
+{
+ None = 0,
+ MayFail = 1,
+ Success = 2
+
+}; // enum Cer
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Runtime.ConstrainedExecution
Index: runtime/System/Runtime/GCLatencyMode.cs
===================================================================
RCS file: runtime/System/Runtime/GCLatencyMode.cs
diff -N runtime/System/Runtime/GCLatencyMode.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Runtime/GCLatencyMode.cs 3 Feb 2009 20:13:21 -0000
1.1
@@ -0,0 +1,40 @@
+/*
+ * GCLatencyMode.cs - Implementation of the
+ * "System.Runtime.GCLatencyMode"
enumeration.
+ *
+ * Copyright (C) 2009 Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Runtime
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_1 && !CONFIG_COMPACT_FRAMEWORK
+
+
+[Serializable]
+public enum GCLatencyMode
+{
+
+ Batch = 0,
+ Interactive = 1,
+ LowLatency = 2
+
+}; // enum GCLatencyMode
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_1 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Runtime
Index: runtime/System/Runtime/ConstrainedExecution/CER.cs
===================================================================
RCS file: runtime/System/Runtime/ConstrainedExecution/CER.cs
diff -N runtime/System/Runtime/ConstrainedExecution/CER.cs
--- runtime/System/Runtime/ConstrainedExecution/CER.cs 22 Jul 2004 04:15:00
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,42 +0,0 @@
-/*
- * CER.cs - Implementation of the
- * "System.Runtime.ConstrainedExecution.CER" class.
- *
- * Copyright (C) 2004 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Runtime.ConstrainedExecution
-{
-
-using System.Runtime.InteropServices;
-
-#if CONFIG_FRAMEWORK_2_0
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-public enum CER
-{
- None = 0,
- MayFail = 1,
- Success = 2
-
-}; // enum CER
-
-#endif // CONFIG_FRAMEWORK_2_0
-
-}; // namespace System.Runtime.ConstrainedExecution
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog runtime/Microsoft/Win32/SafeH...,
Klaus Treichel <=