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
- MessageFilterException.cs
- XmlWriter.cs
- ObjectTypeMapping.cs
- GrammarBuilderWildcard.cs
- Pens.cs
- KnownTypesProvider.cs
- DataControlLinkButton.cs
- RelatedCurrencyManager.cs
- ScriptManagerProxy.cs
- WebServiceErrorEvent.cs
- SQLBoolean.cs
- SmiXetterAccessMap.cs
- PropertyChangedEventManager.cs
- DependencyProperty.cs
- FloaterBaseParagraph.cs
- ToolStripItemClickedEventArgs.cs
- rsa.cs
- ChannelSinkStacks.cs
- VScrollBar.cs
- ProxyAttribute.cs
- WindowShowOrOpenTracker.cs
- ToolStripScrollButton.cs
- WebUtility.cs
- HtmlInputCheckBox.cs
- Padding.cs
- RightsManagementProvider.cs
- GeometryDrawing.cs
- EnumUnknown.cs
- DocComment.cs
- EditModeSwitchButton.cs
- PathNode.cs
- CqlIdentifiers.cs
- DataListAutoFormat.cs
- SmiEventSink_Default.cs
- SoapMessage.cs
- HGlobalSafeHandle.cs
- HeaderUtility.cs
- XmlDictionaryWriter.cs
- TypefaceMap.cs
- QuaternionRotation3D.cs
- WindowsUpDown.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- AuthenticationModuleElement.cs
- TextFormatterContext.cs
- ObjectReaderCompiler.cs
- StrokeFIndices.cs
- StatusStrip.cs
- TerminatorSinks.cs
- ValidationErrorEventArgs.cs
- HtmlPageAdapter.cs
- PartBasedPackageProperties.cs
- DBDataPermissionAttribute.cs
- OpenFileDialog.cs
- TableCell.cs
- Helpers.cs
- OracleLob.cs
- httpstaticobjectscollection.cs
- CornerRadius.cs
- WorkerRequest.cs
- CodeAssignStatement.cs
- TypefaceMap.cs
- StreamedWorkflowDefinitionContext.cs
- Padding.cs
- OutKeywords.cs
- ToolStripGripRenderEventArgs.cs
- InputBinder.cs
- PerfCounters.cs
- StringUtil.cs
- DataGridViewRowPrePaintEventArgs.cs
- Size3DConverter.cs
- XmlDocumentFieldSchema.cs
- SelectionItemPattern.cs
- SiteMapSection.cs
- DesignerCategoryAttribute.cs
- ObjectItemCollection.cs
- VectorConverter.cs
- SqlMethodTransformer.cs
- SpeechSeg.cs
- XmlILConstructAnalyzer.cs
- DbgUtil.cs
- TableRowCollection.cs
- CreateUserWizardAutoFormat.cs
- TemplateControl.cs
- localization.cs
- SystemColors.cs
- EncoderParameters.cs
- ReferentialConstraint.cs
- TextTreeNode.cs
- SrgsItemList.cs
- XPathParser.cs
- WebServiceParameterData.cs
- ErrorView.xaml.cs
- SystemWebExtensionsSectionGroup.cs
- ImpersonateTokenRef.cs
- TextTreeUndo.cs
- Vector3DConverter.cs
- TranslateTransform.cs
- EventMappingSettingsCollection.cs
- ParameterToken.cs
- CaseStatement.cs