singrdk/base/Applications/Runtime/Full/System/Reflection/AssemblyAttributes.cs

146 lines
4.6 KiB
C#
Raw Permalink Normal View History

2008-03-05 09:52:00 -05:00
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
2008-11-17 18:29:00 -05:00
//=============================================================================
//
// Purpose: For Assembly-related custom attributes.
//
//=============================================================================
2008-03-05 09:52:00 -05:00
2008-11-17 18:29:00 -05:00
namespace System.Reflection
{
2008-03-05 09:52:00 -05:00
using System;
//| <include path='docs/doc[@for="AssemblyCultureAttribute"]/*' />
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyCultureAttribute : Attribute
{
private String m_culture;
//| <include path='docs/doc[@for="AssemblyCultureAttribute.AssemblyCultureAttribute"]/*' />
public AssemblyCultureAttribute(String culture)
{
m_culture = culture;
}
//| <include path='docs/doc[@for="AssemblyCultureAttribute.Culture"]/*' />
public String Culture
{
get { return m_culture; }
}
}
//| <include path='docs/doc[@for="AssemblyVersionAttribute"]/*' />
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyVersionAttribute : Attribute
{
private String m_version;
//| <include path='docs/doc[@for="AssemblyVersionAttribute.AssemblyVersionAttribute"]/*' />
public AssemblyVersionAttribute(String version)
{
m_version = version;
}
//| <include path='docs/doc[@for="AssemblyVersionAttribute.Version"]/*' />
public String Version
{
get { return m_version; }
}
}
//| <include path='docs/doc[@for="AssemblyKeyFileAttribute"]/*' />
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyKeyFileAttribute : Attribute
{
private String m_keyFile;
//| <include path='docs/doc[@for="AssemblyKeyFileAttribute.AssemblyKeyFileAttribute"]/*' />
public AssemblyKeyFileAttribute(String keyFile)
{
m_keyFile = keyFile;
}
//| <include path='docs/doc[@for="AssemblyKeyFileAttribute.KeyFile"]/*' />
public String KeyFile
{
get { return m_keyFile; }
}
}
//| <include path='docs/doc[@for="AssemblyKeyNameAttribute"]/*' />
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyKeyNameAttribute : Attribute
{
private String m_keyName;
//| <include path='docs/doc[@for="AssemblyKeyNameAttribute.AssemblyKeyNameAttribute"]/*' />
public AssemblyKeyNameAttribute(String keyName)
{
m_keyName = keyName;
}
//| <include path='docs/doc[@for="AssemblyKeyNameAttribute.KeyName"]/*' />
public String KeyName
{
get { return m_keyName; }
}
}
//| <include path='docs/doc[@for="AssemblyDelaySignAttribute"]/*' />
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyDelaySignAttribute : Attribute
{
private bool m_delaySign;
//| <include path='docs/doc[@for="AssemblyDelaySignAttribute.AssemblyDelaySignAttribute"]/*' />
public AssemblyDelaySignAttribute(bool delaySign)
{
m_delaySign = delaySign;
}
//| <include path='docs/doc[@for="AssemblyDelaySignAttribute.DelaySign"]/*' />
public bool DelaySign
{ get
{ return m_delaySign; }
}
}
//| <include path='docs/doc[@for="AssemblyFlagsAttribute"]/*' />
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyFlagsAttribute : Attribute
{
private uint m_flags;
//| <include path='docs/doc[@for="AssemblyFlagsAttribute.AssemblyFlagsAttribute"]/*' />
[CLSCompliant(false)]
public AssemblyFlagsAttribute(uint flags)
{
m_flags = flags;
}
//| <include path='docs/doc[@for="AssemblyFlagsAttribute.AssemblyFlagsAttribute1"]/*' />
public AssemblyFlagsAttribute(int assemblyFlags)
{
m_flags = (uint)assemblyFlags;
}
//| <include path='docs/doc[@for="AssemblyFlagsAttribute.Flags"]/*' />
[CLSCompliant(false)]
public uint Flags
{
get { return m_flags; }
}
//| <include path='docs/doc[@for="AssemblyFlagsAttribute.AssemblyFlags"]/*' />
public int AssemblyFlags
{
get { return (int)m_flags; }
}
}
}