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
- DataGridToolTip.cs
- EncoderParameter.cs
- VectorAnimationBase.cs
- DurationConverter.cs
- ADConnectionHelper.cs
- PeerTransportSecurityElement.cs
- AnonymousIdentificationSection.cs
- TcpHostedTransportConfiguration.cs
- BamlMapTable.cs
- Trustee.cs
- DetailsViewAutoFormat.cs
- ConfigurationManagerHelperFactory.cs
- FixedSOMTable.cs
- SqlProviderServices.cs
- SimpleMailWebEventProvider.cs
- XmlValidatingReader.cs
- SafeSecurityHandles.cs
- GetKeyedHashRequest.cs
- PartitionedStream.cs
- PolyBezierSegment.cs
- Condition.cs
- ToolStripOverflow.cs
- Win32MouseDevice.cs
- StrokeCollectionDefaultValueFactory.cs
- ServiceDocument.cs
- ConfigurationValidatorBase.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PixelFormatConverter.cs
- XmlWriter.cs
- LoginView.cs
- VScrollProperties.cs
- versioninfo.cs
- HttpResponseHeader.cs
- DisplayMemberTemplateSelector.cs
- xmlsaver.cs
- BlurBitmapEffect.cs
- WebPartEditorApplyVerb.cs
- UnsafeNativeMethods.cs
- SqlConnection.cs
- MessageQueuePermission.cs
- IPCCacheManager.cs
- EncodingStreamWrapper.cs
- DependencyPropertyDescriptor.cs
- NativeMethods.cs
- ValueSerializer.cs
- GlobalItem.cs
- RowUpdatedEventArgs.cs
- AdapterUtil.cs
- RequiredFieldValidator.cs
- CapabilitiesAssignment.cs
- ConnectionManagementSection.cs
- ConsoleKeyInfo.cs
- PassportAuthentication.cs
- EFTableProvider.cs
- MemberProjectionIndex.cs
- ToolBarOverflowPanel.cs
- DynamicDocumentPaginator.cs
- OrthographicCamera.cs
- GlyphInfoList.cs
- PersonalizationStateInfoCollection.cs
- DelegateHelpers.cs
- XmlElementAttributes.cs
- BaseProcessProtocolHandler.cs
- ConfigurationStrings.cs
- FormsAuthenticationCredentials.cs
- ProxyWebPartManager.cs
- PeerCollaborationPermission.cs
- XsdDataContractImporter.cs
- MergeFilterQuery.cs
- AppDomainResourcePerfCounters.cs
- CachedTypeface.cs
- BaseCodeDomTreeGenerator.cs
- DirectoryGroupQuery.cs
- GlobalizationSection.cs
- CodePropertyReferenceExpression.cs
- TrustManagerPromptUI.cs
- TrustLevelCollection.cs
- InvariantComparer.cs
- AuthenticatedStream.cs
- BamlCollectionHolder.cs
- IndependentlyAnimatedPropertyMetadata.cs
- MinMaxParagraphWidth.cs
- SimpleModelProvider.cs
- DockProviderWrapper.cs
- StringArrayConverter.cs
- GenericWebPart.cs
- FormsIdentity.cs
- SocketPermission.cs
- ValueExpressions.cs
- MobileListItemCollection.cs
- RtfToXamlLexer.cs
- TableLayout.cs
- SafeProcessHandle.cs
- RuntimeTransactionHandle.cs
- WorkflowElementDialogWindow.xaml.cs
- RoleManagerModule.cs
- BindingExpression.cs
- CodeMemberProperty.cs
- HTTPRemotingHandler.cs
- MsmqBindingBase.cs