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
- XmlCharacterData.cs
- MarkupObject.cs
- ConsumerConnectionPointCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Point3DKeyFrameCollection.cs
- DbConvert.cs
- InternalsVisibleToAttribute.cs
- BaseResourcesBuildProvider.cs
- TokenFactoryCredential.cs
- ModelProperty.cs
- PointF.cs
- Selector.cs
- shaperfactory.cs
- GridPatternIdentifiers.cs
- FrameworkElementFactory.cs
- ReverseComparer.cs
- StructuredType.cs
- RoleManagerSection.cs
- SHA512.cs
- SystemIPGlobalStatistics.cs
- SponsorHelper.cs
- ActivationServices.cs
- ResourcesBuildProvider.cs
- ViewGenerator.cs
- PresentationAppDomainManager.cs
- KeyboardDevice.cs
- Util.cs
- BinarySerializer.cs
- StaticResourceExtension.cs
- SafeTimerHandle.cs
- ButtonRenderer.cs
- OleDbCommandBuilder.cs
- MethodBuilder.cs
- WebServiceErrorEvent.cs
- RuleElement.cs
- XmlSerializerFactory.cs
- DocumentPageView.cs
- NameSpaceExtractor.cs
- sqlcontext.cs
- StringInfo.cs
- StringBuilder.cs
- SchemaTableOptionalColumn.cs
- MappingModelBuildProvider.cs
- DockPanel.cs
- _DisconnectOverlappedAsyncResult.cs
- UriExt.cs
- AutomationIdentifierGuids.cs
- MarkupCompiler.cs
- SamlAdvice.cs
- VScrollProperties.cs
- ETagAttribute.cs
- OrderedDictionaryStateHelper.cs
- EntityDataSourceUtil.cs
- AnnotationHighlightLayer.cs
- IPEndPoint.cs
- ScaleTransform3D.cs
- DataGridRelationshipRow.cs
- OpCodes.cs
- Stack.cs
- Vector3dCollection.cs
- DesignerForm.cs
- ValidationHelpers.cs
- DesignerVerb.cs
- ACE.cs
- XmlSerializerVersionAttribute.cs
- ISAPIWorkerRequest.cs
- DataConnectionHelper.cs
- DataQuery.cs
- ReadContentAsBinaryHelper.cs
- LinqDataSourceContextEventArgs.cs
- SqlMetaData.cs
- AQNBuilder.cs
- TransactionsSectionGroup.cs
- LinqDataView.cs
- InfoCardRSACryptoProvider.cs
- DesignerActionUIService.cs
- ProxyWebPartConnectionCollection.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- SafeArchiveContext.cs
- NumberFormatInfo.cs
- DocumentViewerBaseAutomationPeer.cs
- _NestedSingleAsyncResult.cs
- RotateTransform3D.cs
- HostProtectionException.cs
- ListViewGroup.cs
- WindowsProgressbar.cs
- Utils.cs
- ReferencedCollectionType.cs
- EventLogPermissionEntryCollection.cs
- TdsValueSetter.cs
- EntityParameter.cs
- PrintDialog.cs
- Point3DIndependentAnimationStorage.cs
- TraversalRequest.cs
- DesignerVerbCollection.cs
- PageRequestManager.cs
- ObjectFullSpanRewriter.cs
- CompilationPass2TaskInternal.cs
- IpcPort.cs
- ReadContentAsBinaryHelper.cs