Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeParameterDeclarationExpression.cs / 1 / CodeParameterDeclarationExpression.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 a parameter declaration for method, constructor, or property arguments.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeParameterDeclarationExpression : CodeExpression {
private CodeTypeReference type;
private string name;
private CodeAttributeDeclarationCollection customAttributes = null;
private FieldDirection dir = FieldDirection.In;
///
///
/// Initializes a new instance of .
///
///
public CodeParameterDeclarationExpression() {
}
///
///
/// Initializes a new instance of using the specified type and name.
///
///
public CodeParameterDeclarationExpression(CodeTypeReference type, string name) {
Type = type;
Name = name;
}
///
/// [To be supplied.]
///
public CodeParameterDeclarationExpression(string type, string name) {
Type = new CodeTypeReference(type);
Name = name;
}
///
/// [To be supplied.]
///
public CodeParameterDeclarationExpression(Type type, string name) {
Type = new CodeTypeReference(type);
Name = name;
}
///
///
/// Gets or sets the custom attributes for the parameter declaration.
///
///
public CodeAttributeDeclarationCollection CustomAttributes {
get {
if (customAttributes == null) {
customAttributes = new CodeAttributeDeclarationCollection();
}
return customAttributes;
}
set {
customAttributes = value;
}
}
///
///
/// Gets or sets
/// the direction of the field.
///
///
public FieldDirection Direction {
get {
return dir;
}
set {
dir = value;
}
}
///
///
/// Gets or sets
/// the type of the parameter.
///
///
public CodeTypeReference Type {
get {
if (type == null) {
type = new CodeTypeReference("");
}
return type;
}
set {
type = value;
}
}
///
///
/// Gets or sets
/// the name of the parameter.
///
///
public string Name {
get {
return (name == null) ? string.Empty : name;
}
set {
name = value;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActiveXHost.cs
- ThreadStateException.cs
- ConfigurationManagerInternalFactory.cs
- XmlSchemaSet.cs
- BitmapEffectDrawing.cs
- ContractMapping.cs
- HttpCachePolicyElement.cs
- BitmapEffectInput.cs
- PagesSection.cs
- DocumentReferenceCollection.cs
- NumericUpDownAccelerationCollection.cs
- TemplateParser.cs
- PasswordRecoveryDesigner.cs
- WebPartTransformerAttribute.cs
- ItemChangedEventArgs.cs
- WorkItem.cs
- ExceptionHandlers.cs
- EntityDataSourceSelectingEventArgs.cs
- ConsumerConnectionPointCollection.cs
- QueryStringParameter.cs
- Filter.cs
- NavigationHelper.cs
- RegexMatchCollection.cs
- GridViewColumnCollection.cs
- HandledMouseEvent.cs
- Enum.cs
- PenThreadWorker.cs
- RegisteredScript.cs
- UnsafeNativeMethods.cs
- DataGridLinkButton.cs
- TextTreeTextElementNode.cs
- EmbeddedMailObjectsCollection.cs
- Vector3DAnimation.cs
- MetadataUtilsSmi.cs
- ValueSerializerAttribute.cs
- ServiceOperation.cs
- XmlSequenceWriter.cs
- MouseGestureConverter.cs
- PeekCompletedEventArgs.cs
- BaseServiceProvider.cs
- SqlServices.cs
- WebFaultClientMessageInspector.cs
- Mutex.cs
- DeclarationUpdate.cs
- TransactionInformation.cs
- CallbackDebugBehavior.cs
- MimeMapping.cs
- Privilege.cs
- KerberosReceiverSecurityToken.cs
- XslUrlEditor.cs
- NativeMethods.cs
- GridViewSelectEventArgs.cs
- SqlRecordBuffer.cs
- SqlDataRecord.cs
- TableColumnCollectionInternal.cs
- BinaryMessageEncoder.cs
- HttpResponse.cs
- ViewBox.cs
- ZipIOExtraFieldZip64Element.cs
- TextEndOfParagraph.cs
- VisualCollection.cs
- DataAdapter.cs
- BooleanAnimationUsingKeyFrames.cs
- QilGeneratorEnv.cs
- WebPartCancelEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- SqlException.cs
- RuntimeVariablesExpression.cs
- TraceContext.cs
- _DisconnectOverlappedAsyncResult.cs
- SQLSingleStorage.cs
- Pens.cs
- MouseGestureValueSerializer.cs
- safesecurityhelperavalon.cs
- HandleCollector.cs
- StylusPointPropertyUnit.cs
- InputLanguageEventArgs.cs
- ViewSimplifier.cs
- DataGridAddNewRow.cs
- ReferenceConverter.cs
- QilValidationVisitor.cs
- GetPageCompletedEventArgs.cs
- ClientSideProviderDescription.cs
- AtomParser.cs
- MetafileHeader.cs
- GenericUriParser.cs
- TypedTableHandler.cs
- TerminatorSinks.cs
- CriticalExceptions.cs
- FontUnitConverter.cs
- Floater.cs
- DaylightTime.cs
- RoamingStoreFile.cs
- ExpressionWriter.cs
- Table.cs
- Error.cs
- PopupControlService.cs
- RepeaterCommandEventArgs.cs
- dbdatarecord.cs
- XmlAtomicValue.cs