Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
//
// System.Runtime.ConstrainedExecution.Consistency.cs
//
// Author:
// Duncan Mak (duncan@ximian.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
namespace System.Runtime.ConstrainedExecution {
[Serializable]
public enum Cer {
None,
MayFail,
Success
}
}

View File

@@ -0,0 +1,35 @@
2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* ReliabilityContractAttribute.cs: Fix parameter names
2005-10-28 Sebastien Pouliot <sebastien@ximian.com>
* CriticialFinalizerObject.cs: Added [ReliabilityContract] to ctor.
* ReliabilityContractAttribute.cs: Removed (obsoleted) default ctor.
2005-05-24 Sebastien Pouliot <sebastien@ximian.com>
* CriticialFinalizerObject.cs: Changed ComVisible to true.
* ReliabilityContractAttribute.cs: Default constructor is obsolete.
Properties don't have setters.
2005-03-04 Kazuki Oikawa <kazuki@panicode.com>
* PrePrepareMethodAttribute.cs:
* ReliabilityContractAttribute.cs: Fixed attributes.
2004-08-12 Sebastien Pouliot <sebastien@ximian.com>
* CER.cs: Copied from System.Runtime.Reliability. Fixed attributes.
* Consistency.cs: Copied from System.Runtime.Reliability. Fixed
attributes.
* PrePrepareMethodAttribute.cs: Copied from System.Runtime.Reliability.
Fixed attributes.
* CriticialFinalizerObject.cs: Added missing finalizer and attributes.
* ReliabilityContractAttribute.cs: Copied from System.Runtime.
Reliability. Fixed attributes.
2004-08-03 Sebastien Pouliot <sebastien@ximian.com>
* CriticalFinalizerObject.cs: Moved from System.Runtime.Reliability to
match Fx 2.0 beta 1.

View File

@@ -0,0 +1,38 @@
//
// System.Runtime.ConstrainedExecution.Consistency.cs
//
// Author:
// Duncan Mak (duncan@ximian.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
namespace System.Runtime.ConstrainedExecution {
[Serializable]
public enum Consistency {
MayCorruptAppDomain = 1,
MayCorruptInstance = 2,
MayCorruptProcess = 0,
WillNotCorruptState = 3
}
}

View File

@@ -0,0 +1,51 @@
//
// System.Runtime.ConstrainedExecution.CriticalFinalizerObject class
//
// Author:
// Duncan Mak (duncan@ximian.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
using System.Runtime.InteropServices;
namespace System.Runtime.ConstrainedExecution
{
[ComVisible (true)]
public abstract class CriticalFinalizerObject
{
//
// WARNING: If you add any fields here, update the definition
// for the runtime structures as well
//
[ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
protected CriticalFinalizerObject ()
{
}
[ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)]
~CriticalFinalizerObject ()
{
}
}
}

View File

@@ -0,0 +1,38 @@
//
// System.Runtime.ConstrainedExecution.PrePrepareMethodAttribute.cs
//
// Author:
// Duncan Mak (duncan@ximian.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
namespace System.Runtime.ConstrainedExecution
{
[AttributeUsage ((AttributeTargets.Constructor | AttributeTargets.Method), Inherited=false)]
public sealed class PrePrepareMethodAttribute : Attribute
{
public PrePrepareMethodAttribute ()
{
}
}
}

View File

@@ -0,0 +1,52 @@
//
// System.Runtime.ConstrainedExecution.ReliabilityContractAttribute.cs
//
// Author:
// Duncan Mak (duncan@ximian.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
namespace System.Runtime.ConstrainedExecution
{
[AttributeUsage ((AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct |
AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Interface), Inherited=false)]
public sealed class ReliabilityContractAttribute : Attribute
{
Consistency consistency;
Cer cer;
public ReliabilityContractAttribute (Consistency consistencyGuarantee, Cer cer)
{
this.consistency = consistencyGuarantee;
this.cer = cer;
}
public Cer Cer {
get { return cer; }
}
public Consistency ConsistencyGuarantee {
get { return consistency; }
}
}
}