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; ////// [ 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
- DbBuffer.cs
- X509ChainPolicy.cs
- Translator.cs
- TypefaceMetricsCache.cs
- DefaultPrintController.cs
- GridPatternIdentifiers.cs
- BezierSegment.cs
- UnhandledExceptionEventArgs.cs
- Misc.cs
- SQLRoleProvider.cs
- PriorityBindingExpression.cs
- SystemIPInterfaceStatistics.cs
- DuplicateDetector.cs
- Cursor.cs
- TcpHostedTransportConfiguration.cs
- SmiMetaDataProperty.cs
- CodeArrayCreateExpression.cs
- WebBrowserPermission.cs
- LogLogRecord.cs
- SchemaImporterExtensionElement.cs
- EncoderParameter.cs
- BindableTemplateBuilder.cs
- MsdtcWrapper.cs
- WeakReferenceList.cs
- FormViewPageEventArgs.cs
- RequestQueue.cs
- WebPageTraceListener.cs
- PreviewPageInfo.cs
- TextServicesDisplayAttribute.cs
- TimeIntervalCollection.cs
- WinInet.cs
- ExtendedProtectionPolicy.cs
- SecurityManager.cs
- IdnMapping.cs
- PeerInputChannelListener.cs
- EpmSourcePathSegment.cs
- UIElementAutomationPeer.cs
- InProcStateClientManager.cs
- SystemKeyConverter.cs
- SortFieldComparer.cs
- SerialErrors.cs
- SelectionRange.cs
- XamlHostingSectionGroup.cs
- CompilationRelaxations.cs
- WhitespaceRuleReader.cs
- TemplateModeChangedEventArgs.cs
- ClientUrlResolverWrapper.cs
- StaticFileHandler.cs
- CodeArrayIndexerExpression.cs
- TextDecorationLocationValidation.cs
- DataGridToolTip.cs
- PrintPreviewControl.cs
- UnsafeCollabNativeMethods.cs
- IndicCharClassifier.cs
- TempEnvironment.cs
- BaseValidator.cs
- SHA1Managed.cs
- TimeSpanMinutesConverter.cs
- Vector3DIndependentAnimationStorage.cs
- Parameter.cs
- SystemUdpStatistics.cs
- XmlUtil.cs
- AssertSection.cs
- ZeroOpNode.cs
- remotingproxy.cs
- TableRowGroup.cs
- PenContexts.cs
- TextServicesDisplayAttribute.cs
- HeaderLabel.cs
- UICuesEvent.cs
- ListBoxItemWrapperAutomationPeer.cs
- Int64.cs
- SqlConnectionFactory.cs
- GeneralTransform3DTo2DTo3D.cs
- DynamicMethod.cs
- DependencyPropertyAttribute.cs
- TimerEventSubscription.cs
- PtsPage.cs
- HyperLinkField.cs
- SourceLocationProvider.cs
- Message.cs
- ObjectQueryExecutionPlan.cs
- FontUnitConverter.cs
- ToolTipAutomationPeer.cs
- IDataContractSurrogate.cs
- SqlTriggerContext.cs
- ProcessHostMapPath.cs
- HtmlInputFile.cs
- FixUpCollection.cs
- GridLengthConverter.cs
- GenericsInstances.cs
- SyndicationSerializer.cs
- Transform3D.cs
- BamlRecordWriter.cs
- FontCollection.cs
- CreateUserWizardStep.cs
- TypeUtil.cs
- WebBrowser.cs
- designeractionbehavior.cs
- VideoDrawing.cs