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,86 @@
//
// AssemblyHash.cs
//
// Authors:
// Tomas Restrepo (tomasr@mvps.org)
// Sebastien Pouliot <sebastien@ximian.com>
//
// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.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.
//
using System.Runtime.InteropServices;
namespace System.Configuration.Assemblies {
[Serializable]
[ComVisible (true)]
[Obsolete]
public struct AssemblyHash : ICloneable {
private AssemblyHashAlgorithm _algorithm;
private byte[] _value;
[Obsolete]
public static readonly AssemblyHash Empty = new AssemblyHash (AssemblyHashAlgorithm.None, null);
[Obsolete]
public AssemblyHashAlgorithm Algorithm {
get { return _algorithm; }
set { _algorithm = value; }
}
[Obsolete]
public AssemblyHash (AssemblyHashAlgorithm algorithm, byte[] value)
{
_algorithm = algorithm;
if (value != null)
_value = (byte[]) value.Clone ();
else
_value = null;
}
[Obsolete]
public AssemblyHash (byte[] value)
: this (AssemblyHashAlgorithm.SHA1, value)
{
}
[Obsolete]
public object Clone ()
{
return new AssemblyHash (_algorithm, _value);
}
[Obsolete]
public byte[] GetValue ()
{
return _value;
}
[Obsolete]
public void SetValue (byte[] value)
{
_value = value;
}
}
}

View File

@@ -0,0 +1,49 @@
// AssemblyHashAlgorithm.cs
//
// This code was automatically generated from
// ECMA CLI XML Library Specification.
// Generator: libgen.xsl [1.0; (C) Sergey Chaban (serge@wildwestsoftware.com)]
// Created: Wed, 5 Sep 2001 06:38:03 UTC
// Source file: all.xml
// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
// Copyright (C) 2004,2006 Novell, Inc (http://www.novell.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.
//
using System.Runtime.InteropServices;
namespace System.Configuration.Assemblies {
[Serializable]
[ComVisible (true)]
public enum AssemblyHashAlgorithm {
None = 0,
MD5 = 32771,
SHA1 = 32772,
#if NET_4_5
SHA256 = 32780,
SHA384 = 32781,
SHA512 = 32782,
#endif
}
}

View File

@@ -0,0 +1,44 @@
// AssemblyVersionCompatibility.cs
//
// This code was automatically generated from
// ECMA CLI XML Library Specification.
// Generator: libgen.xsl [1.0; (C) Sergey Chaban (serge@wildwestsoftware.com)]
// Created: Wed, 5 Sep 2001 06:38:13 UTC
// Source file: all.xml
// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.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.
//
using System.Runtime.InteropServices;
namespace System.Configuration.Assemblies {
[Serializable]
[ComVisible (true)]
public enum AssemblyVersionCompatibility {
SameMachine = 1,
SameProcess = 2,
SameDomain = 3
}
}

View File

@@ -0,0 +1,19 @@
2007-08-08 Atsushi Enomoto <atsushi@ximian.com>
* AssemblyHash.cs : added 2.0 operator overloads.
2006-10-31 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyHashAlgorithm.cs: Added [Serializable] and
[ComVisible(true)] attributes for NET_2_0 profile.
* AssemblyHash.cs: Added bunch of [Obsolete] attributes to the NET_2_0
profile. Cleaned up the source code to match Mono source style.
* AssemblyVersionCompatibility.cs: Added [Serializable] and
[ComVisible(true)] attributes for NET_2_0 profile.
2001-07-13 Tomas Restrepo (tomasr@mvps.org)
* AssemblyHash finished
* AssemblyHashAlgorithm finished
* AssemblyVersion finished

View File

@@ -0,0 +1,125 @@
// ProcessorID.cs
//
// This code was automatically generated from
// ECMA CLI XML Library Specification.
// Generator: libgen.xsl [1.0; (C) Sergey Chaban (serge@wildwestsoftware.com)]
// Created: Wed, 5 Sep 2001 06:38:23 UTC
// Source file: all.xml
// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.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.
//
namespace System.Configuration.Assemblies {
#if ECMA
/// <summary>
/// </summary>
public enum ProcessorID {
/// <summary>
/// </summary>
INTEL_386 = 386,
/// <summary>
/// </summary>
INTEL_486 = 486,
/// <summary>
/// </summary>
INTEL_PENTIUM = 586,
/// <summary>
/// </summary>
MIPS_R4000 = 4000,
/// <summary>
/// </summary>
ALPHA_21064 = 21064,
/// <summary>
/// </summary>
PPC_601 = 601,
/// <summary>
/// </summary>
PPC_603 = 603,
/// <summary>
/// </summary>
PPC_604 = 604,
/// <summary>
/// </summary>
PPC_620 = 620,
/// <summary>
/// </summary>
HITACHI_SH3 = 10003,
/// <summary>
/// </summary>
HITACHI_SH3E = 10004,
/// <summary>
/// </summary>
HITACHI_SH4 = 10005,
/// <summary>
/// </summary>
MOTOROLA_821 = 821,
/// <summary>
/// </summary>
SHx_SH3 = 103,
/// <summary>
/// </summary>
SHx_SH4 = 104,
/// <summary>
/// </summary>
STRONGARM = 2577,
/// <summary>
/// </summary>
ARM720 = 1824,
/// <summary>
/// </summary>
ARM820 = 2080,
/// <summary>
/// </summary>
ARM920 = 2336,
/// <summary>
/// </summary>
ARM_7TDMI = 70001,
} // ProcessorID
#endif
} // System.Configuration.Assemblies