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
- UnmanagedBitmapWrapper.cs
- ViewStateModeByIdAttribute.cs
- RectValueSerializer.cs
- CodeVariableDeclarationStatement.cs
- QuaternionKeyFrameCollection.cs
- IPGlobalProperties.cs
- GetPageCompletedEventArgs.cs
- FixUpCollection.cs
- UniqueIdentifierService.cs
- WinFormsComponentEditor.cs
- FileSystemEnumerable.cs
- DbProviderManifest.cs
- dataprotectionpermissionattribute.cs
- CookielessHelper.cs
- EnumConverter.cs
- NaturalLanguageHyphenator.cs
- SqlClientMetaDataCollectionNames.cs
- SqlVersion.cs
- EmbeddedMailObject.cs
- AdornerLayer.cs
- CharacterShapingProperties.cs
- unsafenativemethodstextservices.cs
- XmlStringTable.cs
- MimeBasePart.cs
- TraversalRequest.cs
- PriorityQueue.cs
- Int32KeyFrameCollection.cs
- SkinBuilder.cs
- GACMembershipCondition.cs
- XamlStream.cs
- DBSqlParserTable.cs
- ArrayItemValue.cs
- FixedSOMFixedBlock.cs
- SessionPageStatePersister.cs
- EnlistmentTraceIdentifier.cs
- TimelineGroup.cs
- XmlSiteMapProvider.cs
- EncryptedType.cs
- DynamicQueryStringParameter.cs
- uribuilder.cs
- RepeaterItemCollection.cs
- EventMappingSettingsCollection.cs
- SQLDouble.cs
- ipaddressinformationcollection.cs
- GC.cs
- Splitter.cs
- PerfProviderCollection.cs
- Enumerable.cs
- EventLogEntry.cs
- ErrorStyle.cs
- SQLDecimal.cs
- CodeDOMUtility.cs
- ServerIdentity.cs
- XmlValidatingReader.cs
- WebReferenceOptions.cs
- GroupDescription.cs
- MobileUITypeEditor.cs
- DotExpr.cs
- FactoryMaker.cs
- FlowDocument.cs
- SqlVersion.cs
- WebHttpEndpoint.cs
- WebResourceAttribute.cs
- precedingquery.cs
- IsolatedStoragePermission.cs
- NamedPipeActivation.cs
- DataSourceDesigner.cs
- XamlDesignerSerializationManager.cs
- FormViewCommandEventArgs.cs
- ThreadExceptionDialog.cs
- TreeView.cs
- SqlServer2KCompatibilityCheck.cs
- ScriptingRoleServiceSection.cs
- ObjectConverter.cs
- StubHelpers.cs
- Serializer.cs
- CheckBoxFlatAdapter.cs
- ComboBoxItem.cs
- SqlNotificationEventArgs.cs
- ReadOnlyState.cs
- WebBrowserUriTypeConverter.cs
- SecurityPermission.cs
- OperationInvokerBehavior.cs
- HttpBrowserCapabilitiesBase.cs
- SqlCacheDependency.cs
- PolicyValidationException.cs
- DataContext.cs
- ComponentEvent.cs
- HiddenFieldPageStatePersister.cs
- SqlBulkCopyColumnMapping.cs
- EditBehavior.cs
- PageFunction.cs
- NetSectionGroup.cs
- KeyInterop.cs
- DoubleStorage.cs
- DesignBindingPicker.cs
- ClientScriptManager.cs
- PriorityQueue.cs
- TransformCollection.cs
- PreviewKeyDownEventArgs.cs