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
- RelationshipNavigation.cs
- RuleSetReference.cs
- WeakHashtable.cs
- PageRanges.cs
- Int64AnimationBase.cs
- RoutedCommand.cs
- XPathParser.cs
- SingleAnimationUsingKeyFrames.cs
- SharedStatics.cs
- IndexedEnumerable.cs
- ObjectCloneHelper.cs
- StringPropertyBuilder.cs
- AppSecurityManager.cs
- TabControlEvent.cs
- SafeCoTaskMem.cs
- TemplatedMailWebEventProvider.cs
- MediaSystem.cs
- GridViewDeleteEventArgs.cs
- NegatedConstant.cs
- basemetadatamappingvisitor.cs
- RepeaterItemEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- BrushConverter.cs
- FormattedTextSymbols.cs
- VarRemapper.cs
- TrustExchangeException.cs
- SerialPinChanges.cs
- OracleEncoding.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- __Filters.cs
- InvalidOleVariantTypeException.cs
- PropertyHelper.cs
- EventLogReader.cs
- PathFigureCollection.cs
- CommonObjectSecurity.cs
- SortedSetDebugView.cs
- WebContext.cs
- EraserBehavior.cs
- ReferencedAssembly.cs
- XmlElementCollection.cs
- SQLBoolean.cs
- RequestContext.cs
- CommonObjectSecurity.cs
- Transform.cs
- ListBoxItem.cs
- ExtentCqlBlock.cs
- MouseGestureConverter.cs
- PropertySet.cs
- DataGridColumnStyleMappingNameEditor.cs
- MimeBasePart.cs
- AsymmetricAlgorithm.cs
- PropertyChangeTracker.cs
- CompositeActivityTypeDescriptorProvider.cs
- ExecutionEngineException.cs
- Speller.cs
- OrderByQueryOptionExpression.cs
- CustomErrorsSectionWrapper.cs
- LicenseException.cs
- UpdatableGenericsFeature.cs
- DispatcherHookEventArgs.cs
- Block.cs
- Matrix.cs
- ListBox.cs
- DesignerEditorPartChrome.cs
- TypeUtil.cs
- PageCodeDomTreeGenerator.cs
- NamespaceCollection.cs
- RangeValidator.cs
- Misc.cs
- DataGridViewSelectedColumnCollection.cs
- ReadWriteObjectLock.cs
- ByteAnimation.cs
- Query.cs
- Light.cs
- GetIsBrowserClientRequest.cs
- DataGridCellInfo.cs
- TypeToken.cs
- ConnectionPoint.cs
- SchemaAttDef.cs
- ConstructorBuilder.cs
- RepeatBehaviorConverter.cs
- WsiProfilesElement.cs
- StyleBamlRecordReader.cs
- WebPartsSection.cs
- DesignTimeValidationFeature.cs
- Script.cs
- XDeferredAxisSource.cs
- DefaultBinder.cs
- ping.cs
- ProgressBarBrushConverter.cs
- Message.cs
- PropertyDescriptor.cs
- TransformerInfo.cs
- SecureStringHasher.cs
- ExtensionQuery.cs
- FixedSOMTableCell.cs
- XmlEntity.cs
- ObjectComplexPropertyMapping.cs
- FrameDimension.cs
- linebase.cs