Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeParameterDeclarationExpression.cs / 1305376 / CodeParameterDeclarationExpression.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets /// the name of the parameter. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiscoveryExceptionDictionary.cs
- GridPattern.cs
- ServiceDebugBehavior.cs
- SwitchLevelAttribute.cs
- TileBrush.cs
- HtmlInputControl.cs
- ByteStack.cs
- CodeNamespaceCollection.cs
- RotationValidation.cs
- Directory.cs
- BackoffTimeoutHelper.cs
- ExpressionParser.cs
- NativeMethods.cs
- XpsPartBase.cs
- MissingFieldException.cs
- ImageAnimator.cs
- Rect3DValueSerializer.cs
- ProfileSettingsCollection.cs
- IDReferencePropertyAttribute.cs
- ObjectListCommandEventArgs.cs
- UpdateCompiler.cs
- ParallelTimeline.cs
- ConfigXmlText.cs
- WebPartMenu.cs
- PackageDigitalSignatureManager.cs
- ObsoleteAttribute.cs
- WebServiceFault.cs
- ObjectPropertyMapping.cs
- TreeNodeConverter.cs
- ThreadStateException.cs
- SQLInt16Storage.cs
- Track.cs
- Types.cs
- MethodToken.cs
- cryptoapiTransform.cs
- VirtualizingPanel.cs
- SQLString.cs
- xmlfixedPageInfo.cs
- DataGridColumn.cs
- filewebrequest.cs
- FixedSOMTableCell.cs
- _SSPIWrapper.cs
- SR.cs
- CreateDataSourceDialog.cs
- NavigationProgressEventArgs.cs
- DiscriminatorMap.cs
- ErrorHandler.cs
- CustomErrorCollection.cs
- FieldBuilder.cs
- NamespaceDecl.cs
- WindowsFormsHostPropertyMap.cs
- BlurBitmapEffect.cs
- OrderedDictionary.cs
- DataGridItemEventArgs.cs
- UnsafeNativeMethods.cs
- DBSqlParser.cs
- SQLDouble.cs
- ThicknessAnimationUsingKeyFrames.cs
- Transform3D.cs
- WebException.cs
- CodeTypeOfExpression.cs
- ZipIOCentralDirectoryFileHeader.cs
- KnownAssemblyEntry.cs
- BidOverLoads.cs
- ResourcePart.cs
- DiscoveryClientDocuments.cs
- SqlDependencyListener.cs
- ColumnMapTranslator.cs
- CollectionChangedEventManager.cs
- validation.cs
- GridViewRowPresenterBase.cs
- IDictionary.cs
- Property.cs
- ThreadExceptionEvent.cs
- VirtualPathProvider.cs
- TdsParserStaticMethods.cs
- PeerToPeerException.cs
- SecurityHelper.cs
- GroupAggregateExpr.cs
- UnsafeNativeMethods.cs
- IProducerConsumerCollection.cs
- XmlLanguageConverter.cs
- Util.cs
- HtmlInputPassword.cs
- TypeSystem.cs
- ToolStrip.cs
- DockAndAnchorLayout.cs
- DataKeyArray.cs
- EventPropertyMap.cs
- IndexedSelectQueryOperator.cs
- WebPartManagerDesigner.cs
- SQLBinaryStorage.cs
- Encoder.cs
- MessageQueue.cs
- ObsoleteAttribute.cs
- SymDocumentType.cs
- ClientOptions.cs
- ToolStripRenderEventArgs.cs
- PackageController.cs
- ListSortDescriptionCollection.cs