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
- WindowsListViewGroup.cs
- _HTTPDateParse.cs
- SizeLimitedCache.cs
- ZoneMembershipCondition.cs
- ToolTip.cs
- dataprotectionpermission.cs
- VisualTarget.cs
- Style.cs
- TransactionsSectionGroup.cs
- ThreadAbortException.cs
- ConnectionPoint.cs
- MsmqAppDomainProtocolHandler.cs
- Main.cs
- TextParentUndoUnit.cs
- HttpWebResponse.cs
- MgmtResManager.cs
- List.cs
- ComboBoxItem.cs
- ResourceDictionary.cs
- Compiler.cs
- TypeConverterHelper.cs
- AnnotationAdorner.cs
- TcpSocketManager.cs
- CharAnimationUsingKeyFrames.cs
- SmtpClient.cs
- WebEventCodes.cs
- HttpPostedFileWrapper.cs
- NameNode.cs
- CatalogZoneAutoFormat.cs
- WebServiceResponse.cs
- XPathAxisIterator.cs
- TextWriterTraceListener.cs
- AuthenticationException.cs
- SemanticResolver.cs
- RuntimeResourceSet.cs
- StorageInfo.cs
- KeyedPriorityQueue.cs
- IdentifierCreationService.cs
- DataRowChangeEvent.cs
- Nodes.cs
- UnauthorizedWebPart.cs
- TextWriterEngine.cs
- TraceXPathNavigator.cs
- Span.cs
- AutomationElement.cs
- VersionPair.cs
- SyndicationSerializer.cs
- SymmetricAlgorithm.cs
- RangeValidator.cs
- HtmlTable.cs
- SQLGuid.cs
- LoginUtil.cs
- Processor.cs
- CryptographicAttribute.cs
- EntityFrameworkVersions.cs
- URL.cs
- ToolStripHighContrastRenderer.cs
- Dictionary.cs
- PlainXmlSerializer.cs
- FormViewDeleteEventArgs.cs
- InputLangChangeRequestEvent.cs
- InternalConfigRoot.cs
- ConfigXmlAttribute.cs
- ScriptReferenceBase.cs
- SystemTcpStatistics.cs
- WebPartMenu.cs
- PersonalizationAdministration.cs
- MasterPageBuildProvider.cs
- XmlCharType.cs
- SafeNativeMethods.cs
- GotoExpression.cs
- InfoCardAsymmetricCrypto.cs
- Attachment.cs
- SelectorItemAutomationPeer.cs
- ReferenceEqualityComparer.cs
- Internal.cs
- XmlNavigatorStack.cs
- DocComment.cs
- CellTreeNode.cs
- OdbcReferenceCollection.cs
- HttpMethodConstraint.cs
- SiteMapHierarchicalDataSourceView.cs
- SqlDesignerDataSourceView.cs
- SQLDoubleStorage.cs
- AutoGeneratedField.cs
- ClientBuildManager.cs
- GenerateScriptTypeAttribute.cs
- SplashScreen.cs
- CurrencyManager.cs
- ViewBase.cs
- Stylesheet.cs
- WorkflowInstanceAbortedRecord.cs
- TdsRecordBufferSetter.cs
- SQLBytes.cs
- Button.cs
- ArgumentDirectionHelper.cs
- Block.cs
- BoundField.cs
- coordinatorscratchpad.cs
- ReferenceSchema.cs