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
- ObjectPropertyMapping.cs
- ToolStripComboBox.cs
- WorkflowInlining.cs
- OletxDependentTransaction.cs
- WebDescriptionAttribute.cs
- Tablet.cs
- ProgramNode.cs
- KeyFrames.cs
- Region.cs
- TreeViewImageKeyConverter.cs
- FastEncoder.cs
- ServiceTimeoutsElement.cs
- CompositeDataBoundControl.cs
- CriticalHandle.cs
- IteratorFilter.cs
- SerialPinChanges.cs
- MenuCommand.cs
- MonthCalendar.cs
- SharedPerformanceCounter.cs
- AdapterSwitches.cs
- DomainConstraint.cs
- SqlComparer.cs
- RuntimeCompatibilityAttribute.cs
- HttpModulesSection.cs
- MouseEventArgs.cs
- SecurityElement.cs
- Tuple.cs
- TemplatedAdorner.cs
- CheckBoxField.cs
- WinFormsComponentEditor.cs
- Transform3DGroup.cs
- KeySpline.cs
- URLEditor.cs
- SiteMap.cs
- JsonCollectionDataContract.cs
- BitmapEffectRenderDataResource.cs
- EventMap.cs
- XmlMtomWriter.cs
- ProfileService.cs
- SqlDataSourceQueryConverter.cs
- AssemblyUtil.cs
- ImageSourceValueSerializer.cs
- AudioException.cs
- UriTemplateEquivalenceComparer.cs
- OutputCacheModule.cs
- StylusPointPropertyUnit.cs
- StringSorter.cs
- Win32MouseDevice.cs
- RegexRunner.cs
- TargetConverter.cs
- SqlBulkCopy.cs
- MatcherBuilder.cs
- ComboBoxRenderer.cs
- FontDialog.cs
- WaitHandleCannotBeOpenedException.cs
- KeyNotFoundException.cs
- PropertyConverter.cs
- DataGridViewRowCancelEventArgs.cs
- ApplicationFileParser.cs
- InvalidCommandTreeException.cs
- FormViewInsertEventArgs.cs
- HotSpotCollection.cs
- JsonStringDataContract.cs
- DataServiceStreamProviderWrapper.cs
- HttpRequestBase.cs
- GenericTypeParameterBuilder.cs
- GC.cs
- ListMarkerSourceInfo.cs
- ToolStripStatusLabel.cs
- GuidConverter.cs
- TdsParserStaticMethods.cs
- ArgumentValueSerializer.cs
- NullableIntMinMaxAggregationOperator.cs
- XsdDuration.cs
- ToolBarButton.cs
- SimpleWorkerRequest.cs
- EventLogPermissionHolder.cs
- MarshalByRefObject.cs
- RowType.cs
- DESCryptoServiceProvider.cs
- ListViewCancelEventArgs.cs
- ColumnHeader.cs
- EntityDataSourceContextCreatedEventArgs.cs
- MembershipSection.cs
- TypeSystem.cs
- DocumentNUp.cs
- PathFigure.cs
- WmpBitmapDecoder.cs
- Subtract.cs
- D3DImage.cs
- LinkedDataMemberFieldEditor.cs
- Polygon.cs
- TransactedReceiveData.cs
- ConnectionModeReader.cs
- BrowsableAttribute.cs
- OdbcConnectionStringbuilder.cs
- LinkLabel.cs
- FontCacheUtil.cs
- TextServicesHost.cs
- TextWriter.cs