You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@@ -1,63 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AmbiguousMatchException.cs
|
||||
//
|
||||
// Author:
|
||||
// Paolo Molaro (lupus@ximian.com)
|
||||
//
|
||||
// (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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection {
|
||||
|
||||
[ComVisible (true)]
|
||||
[Serializable]
|
||||
public sealed class AmbiguousMatchException : SystemException {
|
||||
// Constructors
|
||||
public AmbiguousMatchException ()
|
||||
: base ("Ambiguous matching in method resolution")
|
||||
{
|
||||
}
|
||||
|
||||
public AmbiguousMatchException (string message)
|
||||
: base (message)
|
||||
{
|
||||
}
|
||||
|
||||
public AmbiguousMatchException (string message, Exception inner)
|
||||
: base (message, inner)
|
||||
{
|
||||
}
|
||||
|
||||
internal AmbiguousMatchException (SerializationInfo info, StreamingContext context)
|
||||
: base (info, context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,6 +39,9 @@ using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration.Assemblies;
|
||||
using System.Threading;
|
||||
using System.Text;
|
||||
using System.Diagnostics.Contracts;
|
||||
|
||||
using Mono.Security;
|
||||
|
||||
@@ -70,7 +73,7 @@ namespace System.Reflection {
|
||||
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (!closed) {
|
||||
if (_isOpen) {
|
||||
/*
|
||||
* The returned pointer points inside metadata, so
|
||||
* we have to increase the refcount of the module, and decrease
|
||||
@@ -337,19 +340,58 @@ namespace System.Reflection {
|
||||
|
||||
public virtual Stream GetManifestResourceStream (Type type, String name)
|
||||
{
|
||||
string ns;
|
||||
if (type != null) {
|
||||
ns = type.Namespace;
|
||||
} else {
|
||||
StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
|
||||
return GetManifestResourceStream(type, name, false, ref stackMark);
|
||||
}
|
||||
|
||||
internal Stream GetManifestResourceStream (Type type, String name, bool skipSecurityCheck, ref StackCrawlMark stackMark)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ();
|
||||
if (type == null) {
|
||||
if (name == null)
|
||||
throw new ArgumentNullException ("type");
|
||||
ns = null;
|
||||
throw new ArgumentNullException ("type");
|
||||
} else {
|
||||
String nameSpace = type.Namespace;
|
||||
if (nameSpace != null) {
|
||||
sb.Append (nameSpace);
|
||||
if (name != null)
|
||||
sb.Append (Type.Delimiter);
|
||||
}
|
||||
}
|
||||
|
||||
if (ns == null || ns.Length == 0)
|
||||
return GetManifestResourceStream (name);
|
||||
else
|
||||
return GetManifestResourceStream (ns + "." + name);
|
||||
if (name != null)
|
||||
sb.Append(name);
|
||||
|
||||
return GetManifestResourceStream (sb.ToString());
|
||||
}
|
||||
|
||||
internal unsafe Stream GetManifestResourceStream(String name, ref StackCrawlMark stackMark, bool skipSecurityCheck)
|
||||
{
|
||||
return GetManifestResourceStream (null, name, skipSecurityCheck, ref stackMark);
|
||||
}
|
||||
|
||||
internal String GetSimpleName()
|
||||
{
|
||||
AssemblyName aname = GetName (true);
|
||||
return aname.Name;
|
||||
}
|
||||
|
||||
internal byte[] GetPublicKey()
|
||||
{
|
||||
AssemblyName aname = GetName (true);
|
||||
return aname.GetPublicKey ();
|
||||
}
|
||||
|
||||
internal Version GetVersion()
|
||||
{
|
||||
AssemblyName aname = GetName (true);
|
||||
return aname.Version;
|
||||
}
|
||||
|
||||
private AssemblyNameFlags GetFlags()
|
||||
{
|
||||
AssemblyName aname = GetName (true);
|
||||
return aname.Flags;
|
||||
}
|
||||
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
@@ -435,40 +477,53 @@ namespace System.Reflection {
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
public static extern Assembly GetEntryAssembly();
|
||||
|
||||
internal Assembly GetSatelliteAssemblyNoThrow (CultureInfo culture, Version version)
|
||||
{
|
||||
return GetSatelliteAssembly (culture, version, false);
|
||||
}
|
||||
|
||||
internal Assembly GetSatelliteAssembly (CultureInfo culture, Version version, bool throwOnError)
|
||||
{
|
||||
if (culture == null)
|
||||
throw new ArgumentException ("culture");
|
||||
throw new ArgumentNullException("culture");
|
||||
Contract.EndContractBlock();
|
||||
|
||||
AssemblyName aname = GetName (true);
|
||||
if (version != null)
|
||||
aname.Version = version;
|
||||
StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
|
||||
String name = GetSimpleName() + ".resources";
|
||||
return InternalGetSatelliteAssembly(name, culture, version, true, ref stackMark);
|
||||
}
|
||||
|
||||
internal RuntimeAssembly InternalGetSatelliteAssembly (String name, CultureInfo culture, Version version, bool throwOnFileNotFound, ref StackCrawlMark stackMark)
|
||||
{
|
||||
AssemblyName an = new AssemblyName ();
|
||||
|
||||
an.SetPublicKey (GetPublicKey ());
|
||||
an.Flags = GetFlags () | AssemblyNameFlags.PublicKey;
|
||||
|
||||
if (version == null)
|
||||
an.Version = GetVersion ();
|
||||
else
|
||||
an.Version = version;
|
||||
|
||||
an.CultureInfo = culture;
|
||||
an.Name = name;
|
||||
|
||||
aname.CultureInfo = culture;
|
||||
aname.Name = aname.Name + ".resources";
|
||||
Assembly assembly;
|
||||
|
||||
try {
|
||||
assembly = AppDomain.CurrentDomain.LoadSatellite (aname, false);
|
||||
assembly = AppDomain.CurrentDomain.LoadSatellite (an, false);
|
||||
if (assembly != null)
|
||||
return assembly;
|
||||
return (RuntimeAssembly)assembly;
|
||||
} catch (FileNotFoundException) {
|
||||
assembly = null;
|
||||
// ignore
|
||||
}
|
||||
|
||||
// Try the assembly directory
|
||||
string location = Path.GetDirectoryName (Location);
|
||||
string fullName = Path.Combine (location, Path.Combine (culture.Name, aname.Name + ".dll"));
|
||||
if (!throwOnError && !File.Exists (fullName))
|
||||
if (String.IsNullOrEmpty (Location))
|
||||
return null;
|
||||
|
||||
return LoadFrom (fullName);
|
||||
// Try the assembly directory
|
||||
string location = Path.GetDirectoryName (Location);
|
||||
string fullName = Path.Combine (location, Path.Combine (culture.Name, an.Name + ".dll"));
|
||||
if (!throwOnFileNotFound && !File.Exists (fullName))
|
||||
return null;
|
||||
|
||||
return (RuntimeAssembly)LoadFrom (fullName);
|
||||
}
|
||||
|
||||
#if !MOBILE
|
||||
@@ -716,7 +771,7 @@ namespace System.Reflection {
|
||||
throw new ArgumentNullException ("resourceName");
|
||||
if (resourceName.Length == 0)
|
||||
throw new ArgumentException ("String cannot have zero length.");
|
||||
ManifestResourceInfo result = new ManifestResourceInfo ();
|
||||
ManifestResourceInfo result = new ManifestResourceInfo (null, null, 0);
|
||||
bool found = GetManifestResourceInfoInternal (resourceName, result);
|
||||
if (found)
|
||||
return result;
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyAlgorithmIdAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak <duncan@ximian.com>
|
||||
//
|
||||
// (C) 2002 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Configuration.Assemblies;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyAlgorithmIdAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private uint id;
|
||||
|
||||
// Constructor
|
||||
public AssemblyAlgorithmIdAttribute (AssemblyHashAlgorithm algorithmId)
|
||||
{
|
||||
id = (uint) algorithmId;
|
||||
}
|
||||
|
||||
[CLSCompliant (false)]
|
||||
public AssemblyAlgorithmIdAttribute (uint algorithmId)
|
||||
{
|
||||
id = algorithmId;
|
||||
}
|
||||
|
||||
// Property
|
||||
[CLSCompliant (false)]
|
||||
public uint AlgorithmId
|
||||
{
|
||||
get { return id; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyCompanyAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak <duncan@ximian.com>
|
||||
//
|
||||
// (C) 2002 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyCompanyAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyCompanyAttribute (string company)
|
||||
{
|
||||
name = company;
|
||||
}
|
||||
|
||||
// Properties
|
||||
public string Company
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyConfigurationAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak <duncan@ximian.com>
|
||||
//
|
||||
// (C) 2002 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyConfigurationAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyConfigurationAttribute (string configuration)
|
||||
{
|
||||
name = configuration;
|
||||
}
|
||||
|
||||
// Properties
|
||||
public string Configuration
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
//
|
||||
// AssemblyContentType.cs
|
||||
//
|
||||
// Author:
|
||||
// Martin Baulig <martin.baulig@xamarin.com>
|
||||
//
|
||||
// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.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.Reflection {
|
||||
[SerializableAttribute]
|
||||
[ComVisibleAttribute(false)]
|
||||
public enum AssemblyContentType {
|
||||
Default,
|
||||
WindowsRuntime
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyCopyrightAttribute.cs
|
||||
//
|
||||
// Duncan Mak <duncan@ximian.com>
|
||||
//
|
||||
// (C) 2002 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyCopyrightAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyCopyrightAttribute (string copyright)
|
||||
{
|
||||
name = copyright;
|
||||
}
|
||||
|
||||
// Properties
|
||||
public string Copyright
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyCultureAttribute.cs
|
||||
//
|
||||
// Duncan Mak <duncan@ximian.com>
|
||||
//
|
||||
// (C) 2002 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyCultureAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyCultureAttribute (string culture)
|
||||
{
|
||||
name = culture;
|
||||
}
|
||||
|
||||
// Properties
|
||||
public string Culture
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyDefaultAliasAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak <duncan@ximian.com>
|
||||
//
|
||||
// (C) 2002 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyDefaultAliasAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyDefaultAliasAttribute (string defaultAlias)
|
||||
{
|
||||
name = defaultAlias;
|
||||
}
|
||||
|
||||
// Properties
|
||||
public string DefaultAlias
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyDelaySignAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak <duncan@ximian.com>
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyDelaySignAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private bool delay;
|
||||
|
||||
// Constructor
|
||||
public AssemblyDelaySignAttribute (bool delaySign)
|
||||
{
|
||||
delay = delaySign;
|
||||
}
|
||||
|
||||
// Property
|
||||
public bool DelaySign
|
||||
{
|
||||
get { return delay; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyDescriptionAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyDescriptionAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyDescriptionAttribute (string description)
|
||||
{
|
||||
name = description;
|
||||
}
|
||||
|
||||
// Property
|
||||
public string Description
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyFileVersionAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyFileVersionAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyFileVersionAttribute (string version)
|
||||
{
|
||||
if (version == null)
|
||||
throw new ArgumentNullException ("version");
|
||||
|
||||
name = version;
|
||||
}
|
||||
|
||||
// Property
|
||||
public string Version
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyFlagsAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyFlagsAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private uint flags;
|
||||
|
||||
// Constructor
|
||||
[Obsolete("")]
|
||||
[CLSCompliant (false)]
|
||||
public AssemblyFlagsAttribute (uint flags)
|
||||
{
|
||||
this.flags = flags;
|
||||
}
|
||||
|
||||
[Obsolete("")]
|
||||
public AssemblyFlagsAttribute (int assemblyFlags)
|
||||
{
|
||||
this.flags = (uint)assemblyFlags;
|
||||
}
|
||||
|
||||
public AssemblyFlagsAttribute (AssemblyNameFlags assemblyFlags)
|
||||
{
|
||||
this.flags = (uint)assemblyFlags;
|
||||
}
|
||||
|
||||
// Property
|
||||
[Obsolete("")]
|
||||
[CLSCompliant (false)]
|
||||
public uint Flags
|
||||
{
|
||||
get { return flags; }
|
||||
}
|
||||
|
||||
public int AssemblyFlags
|
||||
{
|
||||
get { return (int)flags; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyInformationalVersionAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyInformationalVersionAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyInformationalVersionAttribute (string informationalVersion)
|
||||
{
|
||||
name = informationalVersion;
|
||||
}
|
||||
|
||||
// Property
|
||||
public string InformationalVersion
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyKeyFileAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyKeyFileAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyKeyFileAttribute (string keyFile)
|
||||
{
|
||||
name = keyFile;
|
||||
}
|
||||
|
||||
// Property
|
||||
public string KeyFile
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyKeyNameAttribute.cs
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
|
||||
public sealed class AssemblyKeyNameAttribute : Attribute
|
||||
{
|
||||
// Field
|
||||
private string name;
|
||||
|
||||
// Constructor
|
||||
public AssemblyKeyNameAttribute (string keyName)
|
||||
{
|
||||
name = keyName;
|
||||
}
|
||||
|
||||
// Property
|
||||
public string KeyName
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
//
|
||||
// AssemblyMetadataAttribute.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <marek.safar@gmail.com>
|
||||
//
|
||||
// Copyright (C) 2012 Xamarin, Inc (http://www.xamarin.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.Reflection
|
||||
{
|
||||
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
|
||||
public sealed class AssemblyMetadataAttribute : Attribute
|
||||
{
|
||||
public AssemblyMetadataAttribute (string key, string value)
|
||||
{
|
||||
Key = key;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public string Key { get; private set; }
|
||||
public string Value { get; private set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -431,11 +431,7 @@ namespace System.Reflection {
|
||||
|
||||
public string CultureName {
|
||||
get {
|
||||
if (cultureinfo == null)
|
||||
return null;
|
||||
if (cultureinfo.LCID == CultureInfo.InvariantCulture.LCID)
|
||||
return "neutral";
|
||||
return cultureinfo.Name;
|
||||
return (cultureinfo == null)? null : cultureinfo.Name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
// AssemblyNameFlags.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:33 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.
|
||||
//
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection {
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[ComVisible (true)]
|
||||
[Flags]
|
||||
[Serializable]
|
||||
public enum AssemblyNameFlags {
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Not sure about the ECMA spec, but this is what is in mscorlib...
|
||||
/// Perhaps this has changed since the beta.
|
||||
/// </summary>
|
||||
PublicKey = 1,
|
||||
|
||||
Retargetable = 256,
|
||||
|
||||
EnableJITcompileOptimizer = 0x4000,
|
||||
EnableJITcompileTracking = 0x8000
|
||||
} // AssemblyNameFlags
|
||||
|
||||
} // System.Reflection
|
||||
@@ -1,52 +0,0 @@
|
||||
//
|
||||
// System.Reflection.AssemblyNameProxy.cs
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
// Lluis Sanchez Gual (lluis@ximian.com)
|
||||
//
|
||||
// (C) 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
[ComVisible (true)]
|
||||
public class AssemblyNameProxy : MarshalByRefObject
|
||||
{
|
||||
// Constructor
|
||||
public AssemblyNameProxy ()
|
||||
{
|
||||
}
|
||||
|
||||
// Method
|
||||
public AssemblyName GetAssemblyName (string assemblyFile)
|
||||
{
|
||||
return AssemblyName.GetAssemblyName (assemblyFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user