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
- ProxyElement.cs
- WhitespaceRule.cs
- SqlMetaData.cs
- BuildProviderAppliesToAttribute.cs
- FormViewRow.cs
- ClientProxyGenerator.cs
- Shared.cs
- DataContractAttribute.cs
- AudioLevelUpdatedEventArgs.cs
- DirectoryGroupQuery.cs
- UpDownEvent.cs
- MessageFormatterConverter.cs
- Encoder.cs
- SqlRetyper.cs
- BufferedStream.cs
- SiteMapDesignerDataSourceView.cs
- HandoffBehavior.cs
- IUnknownConstantAttribute.cs
- HttpListenerRequest.cs
- CannotUnloadAppDomainException.cs
- WCFModelStrings.Designer.cs
- ToolStripScrollButton.cs
- DomainConstraint.cs
- QilParameter.cs
- ColorBlend.cs
- VirtualPath.cs
- OdbcInfoMessageEvent.cs
- XmlSchemaGroupRef.cs
- XPathAncestorIterator.cs
- StreamUpdate.cs
- Query.cs
- DefaultSection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StdValidatorsAndConverters.cs
- EntityParameterCollection.cs
- XamlBrushSerializer.cs
- base64Transforms.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ColumnHeader.cs
- XmlRawWriter.cs
- FileClassifier.cs
- HtmlContainerControl.cs
- NumericPagerField.cs
- Hash.cs
- MenuStrip.cs
- Thumb.cs
- ComponentTray.cs
- Themes.cs
- OutputScopeManager.cs
- GenericQueueSurrogate.cs
- Trace.cs
- ArgumentException.cs
- __TransparentProxy.cs
- ViewEvent.cs
- TreeViewDesigner.cs
- RemoteWebConfigurationHostServer.cs
- SqlGatherConsumedAliases.cs
- CodeTypeReferenceExpression.cs
- __TransparentProxy.cs
- GeometryDrawing.cs
- IndexedEnumerable.cs
- Drawing.cs
- DataBindingValueUIHandler.cs
- NativeObjectSecurity.cs
- XmlReflectionImporter.cs
- PrePostDescendentsWalker.cs
- WindowsBrush.cs
- Transform.cs
- BasicHttpMessageSecurity.cs
- ContextQuery.cs
- HtmlElementCollection.cs
- SelectionHighlightInfo.cs
- UnionExpr.cs
- x509utils.cs
- TypeListConverter.cs
- TargetControlTypeCache.cs
- MetadataArtifactLoaderCompositeFile.cs
- ScriptControlDescriptor.cs
- InternalTypeHelper.cs
- RewritingSimplifier.cs
- IisTraceWebEventProvider.cs
- GlyphRun.cs
- EmbeddedMailObjectsCollection.cs
- StringToken.cs
- UpdateCommand.cs
- HashHelper.cs
- MsmqBindingMonitor.cs
- VideoDrawing.cs
- MachineKeySection.cs
- VSWCFServiceContractGenerator.cs
- FileNotFoundException.cs
- TableColumn.cs
- Codec.cs
- CollectionsUtil.cs
- TaskCanceledException.cs
- HttpFormatExtensions.cs
- ExpressionHelper.cs
- PLINQETWProvider.cs
- ToolStripOverflowButton.cs
- SinglePageViewer.cs