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
- HtmlMeta.cs
- TextBoxBase.cs
- MaskPropertyEditor.cs
- NeutralResourcesLanguageAttribute.cs
- QilInvokeLateBound.cs
- WebEvents.cs
- DataGridCell.cs
- SqlDataRecord.cs
- ListGeneralPage.cs
- SQLInt16Storage.cs
- MinMaxParagraphWidth.cs
- MessagePropertyAttribute.cs
- Setter.cs
- SessionState.cs
- DSASignatureFormatter.cs
- ellipse.cs
- XmlWriter.cs
- ObjectCacheSettings.cs
- InlineObject.cs
- Bold.cs
- ListViewInsertEventArgs.cs
- LayoutInformation.cs
- COM2ExtendedTypeConverter.cs
- TableLayout.cs
- LostFocusEventManager.cs
- ConfigUtil.cs
- unitconverter.cs
- UrlMappingCollection.cs
- RegexTree.cs
- SqlMethodAttribute.cs
- WebPartRestoreVerb.cs
- TextMetrics.cs
- SystemInformation.cs
- DragEventArgs.cs
- ZoneMembershipCondition.cs
- ConnectionsZone.cs
- ForceCopyBuildProvider.cs
- DiscoveryVersion.cs
- SettingsBindableAttribute.cs
- Stack.cs
- StrokeNode.cs
- TypefaceMetricsCache.cs
- Listbox.cs
- documentsequencetextcontainer.cs
- StackOverflowException.cs
- ContainerFilterService.cs
- ConfigurationSettings.cs
- PageFunction.cs
- ComponentResourceManager.cs
- TextTabProperties.cs
- ExpressionDumper.cs
- TextMetrics.cs
- DesignerLoader.cs
- DataGridViewHeaderCell.cs
- SqlDependency.cs
- AssertSection.cs
- BufferBuilder.cs
- StyleSelector.cs
- CodeIdentifiers.cs
- PerformanceCounterManager.cs
- ObjectPersistData.cs
- CodeMemberProperty.cs
- ObjectKeyFrameCollection.cs
- EventWaitHandle.cs
- DataTableMapping.cs
- ParserStreamGeometryContext.cs
- SamlSerializer.cs
- SiteMembershipCondition.cs
- RegexMatch.cs
- iisPickupDirectory.cs
- Metadata.cs
- IsolatedStorage.cs
- SqlTopReducer.cs
- XmlTextEncoder.cs
- EdmItemCollection.cs
- TextBox.cs
- DataKeyPropertyAttribute.cs
- RuntimeConfig.cs
- DataGridItemCollection.cs
- MSG.cs
- CustomAttributeFormatException.cs
- NonBatchDirectoryCompiler.cs
- PointLightBase.cs
- SystemNetHelpers.cs
- CngAlgorithm.cs
- ListViewHitTestInfo.cs
- PagedDataSource.cs
- XamlTypeMapper.cs
- SecurityContext.cs
- XmlSignificantWhitespace.cs
- BreakRecordTable.cs
- RegexReplacement.cs
- MemoryMappedView.cs
- ControlParser.cs
- DateTimeOffsetStorage.cs
- _UriTypeConverter.cs
- DataControlButton.cs
- Win32.cs
- ConstraintConverter.cs
- SafeHandles.cs