Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeArgument.cs / 1 / CodeAttributeArgument.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents an argument for use in a custom attribute declaration.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeAttributeArgument {
private string name;
private CodeExpression value;
///
///
/// Initializes a new instance of .
///
///
public CodeAttributeArgument() {
}
///
///
/// Initializes a new instance of using the specified value.
///
///
public CodeAttributeArgument(CodeExpression value) {
Value = value;
}
///
///
/// Initializes a new instance of using the specified name and
/// value.
///
///
public CodeAttributeArgument(string name, CodeExpression value) {
Name = name;
Value = value;
}
///
///
/// The name of the attribute.
///
///
public string Name {
get {
return (name == null) ? string.Empty : name;
}
set {
name = value;
}
}
///
///
/// The argument for the attribute.
///
///
public CodeExpression Value {
get {
return value;
}
set {
this.value = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents an argument for use in a custom attribute declaration.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeAttributeArgument {
private string name;
private CodeExpression value;
///
///
/// Initializes a new instance of .
///
///
public CodeAttributeArgument() {
}
///
///
/// Initializes a new instance of using the specified value.
///
///
public CodeAttributeArgument(CodeExpression value) {
Value = value;
}
///
///
/// Initializes a new instance of using the specified name and
/// value.
///
///
public CodeAttributeArgument(string name, CodeExpression value) {
Name = name;
Value = value;
}
///
///
/// The name of the attribute.
///
///
public string Name {
get {
return (name == null) ? string.Empty : name;
}
set {
name = value;
}
}
///
///
/// The argument for the attribute.
///
///
public CodeExpression Value {
get {
return value;
}
set {
this.value = 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
- SignatureResourcePool.cs
- DiscoveryClientReferences.cs
- ValueConversionAttribute.cs
- NotFiniteNumberException.cs
- AnnotationObservableCollection.cs
- CollectionCodeDomSerializer.cs
- xmlsaver.cs
- ThicknessKeyFrameCollection.cs
- HandlerElementCollection.cs
- SystemMulticastIPAddressInformation.cs
- DictionaryMarkupSerializer.cs
- IImplicitResourceProvider.cs
- AppDomain.cs
- ExpressionWriter.cs
- ExecutionContext.cs
- CombinedGeometry.cs
- SiteIdentityPermission.cs
- ChineseLunisolarCalendar.cs
- WhitespaceRuleLookup.cs
- ResourcePart.cs
- _DomainName.cs
- ConstructorBuilder.cs
- BitmapEffectDrawingContextState.cs
- BindingValueChangedEventArgs.cs
- InternalConfigConfigurationFactory.cs
- FixedPage.cs
- LogFlushAsyncResult.cs
- MethodCallTranslator.cs
- PrimitiveRenderer.cs
- CompositeScriptReferenceEventArgs.cs
- ActivityCodeGenerator.cs
- COM2ComponentEditor.cs
- Size3DValueSerializer.cs
- ConfigurationManager.cs
- WebPartConnectionsCloseVerb.cs
- StringUtil.cs
- DbConnectionPoolCounters.cs
- HostedAspNetEnvironment.cs
- HashSet.cs
- graph.cs
- ColorBlend.cs
- TextTreeTextElementNode.cs
- ImageDesigner.cs
- RulePatternOps.cs
- Color.cs
- FrameworkContentElement.cs
- AQNBuilder.cs
- XmlArrayAttribute.cs
- WizardPanelChangingEventArgs.cs
- PropertyGeneratedEventArgs.cs
- LinearKeyFrames.cs
- ActionFrame.cs
- DataGridSortCommandEventArgs.cs
- GACMembershipCondition.cs
- TemplateColumn.cs
- Image.cs
- SerializationAttributes.cs
- MetaData.cs
- BamlMapTable.cs
- CaseStatement.cs
- DataGridLength.cs
- ExpressionUtilities.cs
- WebPartCollection.cs
- CryptoApi.cs
- SecurityDocument.cs
- MultiView.cs
- InputBindingCollection.cs
- WMICapabilities.cs
- BaseServiceProvider.cs
- FormClosingEvent.cs
- SqlFileStream.cs
- ManipulationDevice.cs
- PropertyMappingExceptionEventArgs.cs
- JoinSymbol.cs
- SqlClientWrapperSmiStreamChars.cs
- CodeAccessPermission.cs
- SerializationStore.cs
- ListenerHandler.cs
- MergablePropertyAttribute.cs
- WriteFileContext.cs
- ProtocolsSection.cs
- FileIOPermission.cs
- DetailsViewUpdateEventArgs.cs
- PermissionListSet.cs
- RegexWorker.cs
- NameTable.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- RowType.cs
- Tracking.cs
- BitmapData.cs
- WindowsAltTab.cs
- SubpageParaClient.cs
- ExpressionCopier.cs
- HtmlEncodedRawTextWriter.cs
- ValidationResult.cs
- XamlGridLengthSerializer.cs
- StreamAsIStream.cs
- MetadataItemEmitter.cs
- PropertyAccessVisitor.cs