Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / CompilationRelaxations.cs / 1305376 / CompilationRelaxations.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
namespace System.Runtime.CompilerServices
{
using System;
/// IMPORTANT: Keep this in [....] with corhdr.h
[Serializable]
[Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum CompilationRelaxations : int
{
NoStringInterning = 0x0008, // Start in 0x0008, we had other non public flags in this enum before,
// so we'll start here just in case somebody used them. This flag is only
// valid when set for Assemblies.
};
[Serializable]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Method)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CompilationRelaxationsAttribute : Attribute
{
private int m_relaxations; // The relaxations.
public CompilationRelaxationsAttribute (
int relaxations)
{
m_relaxations = relaxations;
}
public CompilationRelaxationsAttribute (
CompilationRelaxations relaxations)
{
m_relaxations = (int) relaxations;
}
public int CompilationRelaxations
{
get
{
return m_relaxations;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
namespace System.Runtime.CompilerServices
{
using System;
/// IMPORTANT: Keep this in [....] with corhdr.h
[Serializable]
[Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum CompilationRelaxations : int
{
NoStringInterning = 0x0008, // Start in 0x0008, we had other non public flags in this enum before,
// so we'll start here just in case somebody used them. This flag is only
// valid when set for Assemblies.
};
[Serializable]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Method)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CompilationRelaxationsAttribute : Attribute
{
private int m_relaxations; // The relaxations.
public CompilationRelaxationsAttribute (
int relaxations)
{
m_relaxations = relaxations;
}
public CompilationRelaxationsAttribute (
CompilationRelaxations relaxations)
{
m_relaxations = (int) relaxations;
}
public int CompilationRelaxations
{
get
{
return m_relaxations;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceReferenceExpressionConverter.cs
- _ContextAwareResult.cs
- Thumb.cs
- XmlSchemaValidationException.cs
- ObjectDataSourceFilteringEventArgs.cs
- DataGridViewColumnTypeEditor.cs
- MethodCallConverter.cs
- RecognizerInfo.cs
- Rijndael.cs
- DescendentsWalker.cs
- InteropBitmapSource.cs
- JsonQNameDataContract.cs
- TextEffectCollection.cs
- CryptoKeySecurity.cs
- PointConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- DrawingImage.cs
- SessionMode.cs
- RtfFormatStack.cs
- InstanceLockedException.cs
- EmptyEnumerable.cs
- UpdateCommand.cs
- ErasingStroke.cs
- DataGridViewTextBoxColumn.cs
- GacUtil.cs
- RemoteWebConfigurationHostStream.cs
- Converter.cs
- EditBehavior.cs
- InstanceContext.cs
- IncrementalHitTester.cs
- Lease.cs
- MetadataCollection.cs
- DbDeleteCommandTree.cs
- DmlSqlGenerator.cs
- CommandPlan.cs
- tooltip.cs
- _CookieModule.cs
- CompatibleComparer.cs
- ListItemDetailViewAttribute.cs
- InputLangChangeRequestEvent.cs
- DelegatingConfigHost.cs
- UnlockInstanceCommand.cs
- MatrixStack.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- PrimitiveList.cs
- SqlClientWrapperSmiStream.cs
- QueryCursorEventArgs.cs
- UnknownBitmapEncoder.cs
- OdbcDataAdapter.cs
- DataStorage.cs
- DomNameTable.cs
- unsafenativemethodsother.cs
- WebBrowserBase.cs
- Cell.cs
- XPathNodeHelper.cs
- FontStyles.cs
- NativeMethods.cs
- BinaryObjectInfo.cs
- TextFormatterHost.cs
- ToolStripPanelRow.cs
- InstallerTypeAttribute.cs
- ThaiBuddhistCalendar.cs
- diagnosticsswitches.cs
- ProcessProtocolHandler.cs
- TextElementEditingBehaviorAttribute.cs
- TextHidden.cs
- NullPackagingPolicy.cs
- OuterGlowBitmapEffect.cs
- WebHeaderCollection.cs
- ObjectViewFactory.cs
- XhtmlTextWriter.cs
- RemotingSurrogateSelector.cs
- UrlMappingsModule.cs
- InvalidPipelineStoreException.cs
- Atom10FormatterFactory.cs
- ActivityTypeCodeDomSerializer.cs
- ObjectQueryProvider.cs
- RSAOAEPKeyExchangeFormatter.cs
- BooleanFunctions.cs
- TemplateParser.cs
- TextTreeRootTextBlock.cs
- DataGridViewCheckBoxColumn.cs
- DocumentOrderQuery.cs
- CapabilitiesAssignment.cs
- ActivationServices.cs
- XmlSchemaSet.cs
- ObjectViewEntityCollectionData.cs
- SiteMapHierarchicalDataSourceView.cs
- WorkerRequest.cs
- XPathParser.cs
- FileStream.cs
- BehaviorEditorPart.cs
- DetailsViewInsertedEventArgs.cs
- BitSet.cs
- DataGridViewCellPaintingEventArgs.cs
- HttpServerUtilityWrapper.cs
- QilTypeChecker.cs
- WebBrowserBase.cs
- TextElementAutomationPeer.cs
- IdentityElement.cs