Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / ObfuscationAttribute.cs / 1305376 / ObfuscationAttribute.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// [....]
//
using System;
using System.Reflection;
namespace System.Reflection
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Delegate,
AllowMultiple = true, Inherited = false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ObfuscationAttribute: Attribute
{
private bool m_strip = true;
private bool m_exclude = true;
private bool m_applyToMembers = true;
private string m_feature = "all";
public ObfuscationAttribute()
{
}
public bool StripAfterObfuscation
{
get
{
return m_strip;
}
set
{
m_strip = value;
}
}
public bool Exclude
{
get
{
return m_exclude;
}
set
{
m_exclude = value;
}
}
public bool ApplyToMembers
{
get
{
return m_applyToMembers;
}
set
{
m_applyToMembers = value;
}
}
public string Feature
{
get
{
return m_feature;
}
set
{
m_feature = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// [....]
//
using System;
using System.Reflection;
namespace System.Reflection
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Delegate,
AllowMultiple = true, Inherited = false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ObfuscationAttribute: Attribute
{
private bool m_strip = true;
private bool m_exclude = true;
private bool m_applyToMembers = true;
private string m_feature = "all";
public ObfuscationAttribute()
{
}
public bool StripAfterObfuscation
{
get
{
return m_strip;
}
set
{
m_strip = value;
}
}
public bool Exclude
{
get
{
return m_exclude;
}
set
{
m_exclude = value;
}
}
public bool ApplyToMembers
{
get
{
return m_applyToMembers;
}
set
{
m_applyToMembers = value;
}
}
public string Feature
{
get
{
return m_feature;
}
set
{
m_feature = value;
}
}
}
}
// 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
- ModulesEntry.cs
- FloaterBaseParaClient.cs
- FontInfo.cs
- PTManager.cs
- RegexParser.cs
- Subtree.cs
- TypedDatasetGenerator.cs
- CellPartitioner.cs
- Component.cs
- OdbcStatementHandle.cs
- userdatakeys.cs
- IPAddress.cs
- LinqDataSourceValidationException.cs
- ObjectQuery_EntitySqlExtensions.cs
- TraversalRequest.cs
- BaseAddressElementCollection.cs
- VariableValue.cs
- DataControlButton.cs
- MaskedTextBoxTextEditorDropDown.cs
- ThemeDirectoryCompiler.cs
- GridViewUpdatedEventArgs.cs
- SmuggledIUnknown.cs
- CheckPair.cs
- SamlAdvice.cs
- CapabilitiesSection.cs
- BlockUIContainer.cs
- SrgsRule.cs
- MissingSatelliteAssemblyException.cs
- DefaultProxySection.cs
- ContentValidator.cs
- FactoryMaker.cs
- TemplateControlParser.cs
- QuotedStringWriteStateInfo.cs
- TemplateKeyConverter.cs
- DataViewSetting.cs
- SurrogateEncoder.cs
- XmlSchemaSearchPattern.cs
- BulletChrome.cs
- ContextStaticAttribute.cs
- brushes.cs
- FakeModelItemImpl.cs
- HMACRIPEMD160.cs
- CodeSubDirectory.cs
- NetMsmqSecurity.cs
- InputQueueChannel.cs
- ChangePasswordAutoFormat.cs
- AxisAngleRotation3D.cs
- XmlSchemaSimpleTypeRestriction.cs
- DesignerVerbToolStripMenuItem.cs
- ProgressiveCrcCalculatingStream.cs
- CommandPlan.cs
- ControlBuilderAttribute.cs
- XmlNamedNodeMap.cs
- OdbcCommandBuilder.cs
- HttpCacheVary.cs
- SchemaInfo.cs
- TransformPattern.cs
- ExpressionBinding.cs
- EntityDesignerUtils.cs
- MessageEventSubscriptionService.cs
- RepeaterItemCollection.cs
- BitmapImage.cs
- ButtonAutomationPeer.cs
- ListViewInsertionMark.cs
- TextTreeUndo.cs
- TypeListConverter.cs
- HWStack.cs
- TableLayoutColumnStyleCollection.cs
- Module.cs
- PropertyItem.cs
- RegexCompiler.cs
- Span.cs
- ApplicationFileParser.cs
- XPathDocumentNavigator.cs
- OdbcEnvironment.cs
- XmlSchemaChoice.cs
- PresentationSource.cs
- OraclePermissionAttribute.cs
- BaseTemplateParser.cs
- Timer.cs
- ErrorsHelper.cs
- Rect.cs
- IHttpResponseInternal.cs
- OptimizedTemplateContent.cs
- ColumnHeaderConverter.cs
- CompilerTypeWithParams.cs
- AlternateViewCollection.cs
- TraceInternal.cs
- UserInitiatedNavigationPermission.cs
- COM2ICategorizePropertiesHandler.cs
- EditorPartChrome.cs
- StrokeSerializer.cs
- ServiceRoute.cs
- HttpDictionary.cs
- RecognizedWordUnit.cs
- PropertyMap.cs
- EndpointAddressMessageFilter.cs
- XmlSchemaComplexContentRestriction.cs
- FixUpCollection.cs
- ChannelSinkStacks.cs