Code:
/ FX-1434 / FX-1434 / 1.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; ////// [ 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; ////// Represents a parameter declaration for method, constructor, or property arguments. /// ////// public CodeParameterDeclarationExpression() { } ////// Initializes a new instance of ///. /// /// public CodeParameterDeclarationExpression(CodeTypeReference type, string name) { Type = type; Name = name; } ////// Initializes a new instance of ///using the specified type and name. /// /// 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; } ///[To be supplied.] ////// public CodeAttributeDeclarationCollection CustomAttributes { get { if (customAttributes == null) { customAttributes = new CodeAttributeDeclarationCollection(); } return customAttributes; } set { customAttributes = value; } } ////// Gets or sets the custom attributes for the parameter declaration. /// ////// public FieldDirection Direction { get { return dir; } set { dir = value; } } ////// Gets or sets /// the direction of the field. /// ////// public CodeTypeReference Type { get { if (type == null) { type = new CodeTypeReference(""); } return type; } set { type = value; } } ////// Gets or sets /// the type of the parameter. /// ////// public string Name { get { return (name == null) ? string.Empty : name; } set { name = value; } } } }/// Gets or sets /// the name of the parameter. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LoadWorkflowAsyncResult.cs
- TraceData.cs
- IconConverter.cs
- ImageBrush.cs
- CssTextWriter.cs
- SettingsPropertyWrongTypeException.cs
- SchemaEntity.cs
- ColorBlend.cs
- NumericExpr.cs
- ThreadInterruptedException.cs
- CharUnicodeInfo.cs
- SerialPinChanges.cs
- WebPartUtil.cs
- TreeNodeCollectionEditor.cs
- X509CertificateChain.cs
- ShaderEffect.cs
- KnownColorTable.cs
- Directory.cs
- basevalidator.cs
- PersonalizableAttribute.cs
- ZipFileInfoCollection.cs
- GifBitmapEncoder.cs
- OverrideMode.cs
- ReaderWriterLockWrapper.cs
- Monitor.cs
- EntityDataSourceUtil.cs
- DrawingBrush.cs
- PropertyPathConverter.cs
- ZipFileInfoCollection.cs
- FormCollection.cs
- CodeDomComponentSerializationService.cs
- DrawListViewSubItemEventArgs.cs
- SizeAnimationClockResource.cs
- iisPickupDirectory.cs
- AssemblyCollection.cs
- ColumnPropertiesGroup.cs
- ActionMessageFilterTable.cs
- Run.cs
- Properties.cs
- DeadCharTextComposition.cs
- UrlAuthFailedErrorFormatter.cs
- _OverlappedAsyncResult.cs
- ProjectedSlot.cs
- DataServiceQueryException.cs
- QueryContinueDragEventArgs.cs
- DataFieldEditor.cs
- Expander.cs
- DataGridColumnCollection.cs
- Facet.cs
- QilInvokeLateBound.cs
- ProcessProtocolHandler.cs
- Scripts.cs
- _WinHttpWebProxyDataBuilder.cs
- ClientConfigPaths.cs
- GlyphRun.cs
- SupportingTokenDuplexChannel.cs
- DrawingContextDrawingContextWalker.cs
- TerminateDesigner.cs
- CodeExpressionStatement.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CompilerResults.cs
- MultiSelectRootGridEntry.cs
- ActivitySurrogate.cs
- XmlSchemaInclude.cs
- PersonalizationProviderCollection.cs
- BoolExpression.cs
- ElementUtil.cs
- WindowsFormsHelpers.cs
- DefaultParameterValueAttribute.cs
- DataGridViewMethods.cs
- HTMLTagNameToTypeMapper.cs
- ChannelDispatcherBase.cs
- BuildProviderCollection.cs
- ScriptReferenceEventArgs.cs
- GridToolTip.cs
- Style.cs
- Win32MouseDevice.cs
- Size3D.cs
- IssuedTokenParametersElement.cs
- KeyBinding.cs
- ManagedIStream.cs
- FieldBuilder.cs
- PenLineCapValidation.cs
- RestHandlerFactory.cs
- ScriptingProfileServiceSection.cs
- TabControl.cs
- RuntimeConfig.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- __Filters.cs
- _NtlmClient.cs
- Iis7Helper.cs
- FlowLayoutSettings.cs
- DataListItemEventArgs.cs
- XsdBuildProvider.cs
- DataServiceResponse.cs
- peernodestatemanager.cs
- StylusCaptureWithinProperty.cs
- ControlCodeDomSerializer.cs
- SecurityState.cs
- DialogResultConverter.cs