Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeArgument.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UncommonField.cs
- ServiceX509SecurityTokenProvider.cs
- AutoFocusStyle.xaml.cs
- ListBoxItem.cs
- PrePrepareMethodAttribute.cs
- WorkingDirectoryEditor.cs
- wgx_commands.cs
- PasswordRecoveryDesigner.cs
- TextTrailingCharacterEllipsis.cs
- WindowCollection.cs
- TextParagraph.cs
- BuildResult.cs
- DynamicScriptObject.cs
- PersistChildrenAttribute.cs
- DoubleAnimationUsingPath.cs
- EventItfInfo.cs
- PropertyKey.cs
- AdapterDictionary.cs
- Wildcard.cs
- CodeActivityMetadata.cs
- DependencyObject.cs
- ViewBox.cs
- EditorBrowsableAttribute.cs
- DataPagerField.cs
- ContentPresenter.cs
- SqlDataSourceView.cs
- FlowThrottle.cs
- SecurityKeyIdentifier.cs
- SoapFault.cs
- printdlgexmarshaler.cs
- CommandValueSerializer.cs
- FunctionNode.cs
- DataTableMapping.cs
- BitmapEffectDrawingContextWalker.cs
- BitmapImage.cs
- ProvidePropertyAttribute.cs
- dtdvalidator.cs
- HashCodeCombiner.cs
- DependencyPropertyAttribute.cs
- _AcceptOverlappedAsyncResult.cs
- ResXResourceSet.cs
- Byte.cs
- LayoutEvent.cs
- AsyncOperation.cs
- XmlSchemas.cs
- VarInfo.cs
- Debug.cs
- WebRequestModuleElementCollection.cs
- EmbossBitmapEffect.cs
- ParserContext.cs
- BamlStream.cs
- SR.cs
- TableLayoutPanelCellPosition.cs
- MD5.cs
- DiscoveryProxy.cs
- EmptyImpersonationContext.cs
- DPAPIProtectedConfigurationProvider.cs
- ProxyAttribute.cs
- InternalEnumValidator.cs
- DocumentEventArgs.cs
- IsolatedStorage.cs
- AttributedMetaModel.cs
- AssemblyBuilder.cs
- DropDownList.cs
- Set.cs
- SqlErrorCollection.cs
- MenuItem.cs
- HwndMouseInputProvider.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TypedTableBase.cs
- Int32Collection.cs
- _TransmitFileOverlappedAsyncResult.cs
- WebPartCatalogAddVerb.cs
- PathFigureCollection.cs
- LocatorPart.cs
- DoubleAnimationBase.cs
- NavigationPropertyEmitter.cs
- TableRowCollection.cs
- TracePayload.cs
- XmlSchemaGroupRef.cs
- CatchBlock.cs
- Attributes.cs
- XmlResolver.cs
- RtfToXamlReader.cs
- DomainUpDown.cs
- DecoderNLS.cs
- ThemeInfoAttribute.cs
- ServiceInfo.cs
- SerializationInfoEnumerator.cs
- ApplicationHost.cs
- RTLAwareMessageBox.cs
- TabControl.cs
- WebPartManagerInternals.cs
- ServiceDescriptions.cs
- TdsParameterSetter.cs
- FileDataSourceCache.cs
- PersonalizationStateInfo.cs
- XmlDomTextWriter.cs
- XsltLibrary.cs
- ClientTargetSection.cs