Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HostingEnvironment.cs
- StandardToolWindows.cs
- StubHelpers.cs
- SynchronizedDispatch.cs
- RouteParameter.cs
- MediaElementAutomationPeer.cs
- Package.cs
- Assembly.cs
- LogEntrySerializer.cs
- ScrollViewer.cs
- TableFieldsEditor.cs
- OleDbTransaction.cs
- ComPlusTypeValidator.cs
- IteratorFilter.cs
- Module.cs
- PackagePart.cs
- ExitEventArgs.cs
- ClientBuildManagerCallback.cs
- ParameterModifier.cs
- TextFindEngine.cs
- RegexTypeEditor.cs
- DispatcherTimer.cs
- CompatibleIComparer.cs
- AddInController.cs
- COMException.cs
- XmlWhitespace.cs
- DrawingContextFlattener.cs
- _NtlmClient.cs
- ADMembershipProvider.cs
- RequestCacheManager.cs
- HeaderedItemsControl.cs
- WindowsFormsEditorServiceHelper.cs
- URLEditor.cs
- DrawingContextDrawingContextWalker.cs
- XmlnsCache.cs
- ConnectionConsumerAttribute.cs
- XPathDocumentIterator.cs
- StylusPlugin.cs
- HttpRequestCacheValidator.cs
- FileDialogCustomPlace.cs
- ArraySubsetEnumerator.cs
- SHA512Managed.cs
- DefaultWorkflowSchedulerService.cs
- DbSourceCommand.cs
- XmlDictionaryReaderQuotas.cs
- PropertyEmitterBase.cs
- UiaCoreProviderApi.cs
- ButtonChrome.cs
- Int16AnimationUsingKeyFrames.cs
- IteratorFilter.cs
- RangeValidator.cs
- MenuBindingsEditor.cs
- Block.cs
- CatalogUtil.cs
- FrameworkTextComposition.cs
- Cursor.cs
- InputBinding.cs
- SpeechSynthesizer.cs
- WebServiceBindingAttribute.cs
- SiblingIterators.cs
- httpserverutility.cs
- XpsFontSerializationService.cs
- Speller.cs
- BindableTemplateBuilder.cs
- Application.cs
- ClientUrlResolverWrapper.cs
- HashCodeCombiner.cs
- ConnectionManagementElementCollection.cs
- IntellisenseTextBox.designer.cs
- XmlObjectSerializer.cs
- Vector3DCollection.cs
- WmiPutTraceRecord.cs
- CategoryNameCollection.cs
- EncodingInfo.cs
- SmtpNegotiateAuthenticationModule.cs
- ResolvedKeyFrameEntry.cs
- DataComponentMethodGenerator.cs
- UIHelper.cs
- InvalidBodyAccessException.cs
- RenderOptions.cs
- CaseExpr.cs
- SHA512Managed.cs
- LingerOption.cs
- AssemblyHash.cs
- StoreAnnotationsMap.cs
- CodeTypeDeclaration.cs
- SystemSounds.cs
- RegionData.cs
- CompositeActivityDesigner.cs
- SecurityStandardsManager.cs
- TimerElapsedEvenArgs.cs
- LateBoundBitmapDecoder.cs
- StylusDownEventArgs.cs
- ShellProvider.cs
- FixedSOMImage.cs
- QuaternionIndependentAnimationStorage.cs
- WorkflowView.cs
- SplitterCancelEvent.cs
- COM2TypeInfoProcessor.cs
- ComNativeDescriptor.cs