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
- UserControlBuildProvider.cs
- RSAPKCS1SignatureFormatter.cs
- SkewTransform.cs
- PassportAuthenticationEventArgs.cs
- FormViewPageEventArgs.cs
- invalidudtexception.cs
- StringHandle.cs
- Executor.cs
- NamespaceDecl.cs
- InnerItemCollectionView.cs
- CheckBox.cs
- MembershipAdapter.cs
- ListComponentEditor.cs
- CheckBoxAutomationPeer.cs
- GeneratedContractType.cs
- CodeAccessSecurityEngine.cs
- XmlSchemaObject.cs
- AppendHelper.cs
- WebRequestModuleElementCollection.cs
- SoapHelper.cs
- HyperLink.cs
- RegisteredHiddenField.cs
- MessageQueue.cs
- IgnoreSection.cs
- TransformValueSerializer.cs
- WebPartConnectionsCancelVerb.cs
- ModifierKeysConverter.cs
- TextInfo.cs
- XmlSerializerFactory.cs
- MessageQueueException.cs
- ObjectDataSource.cs
- PropertyChangedEventManager.cs
- SelectorAutomationPeer.cs
- QuaternionRotation3D.cs
- StrongNameKeyPair.cs
- HttpListenerElement.cs
- TypeExtension.cs
- OLEDB_Util.cs
- ConstraintStruct.cs
- metadatamappinghashervisitor.cs
- StrokeCollection2.cs
- LayoutEvent.cs
- SocketInformation.cs
- HyperLinkColumn.cs
- SchemaEntity.cs
- AssemblyInfo.cs
- InlineUIContainer.cs
- FamilyMapCollection.cs
- EventBuilder.cs
- FlowDocument.cs
- OleDbConnection.cs
- BamlLocalizableResource.cs
- ItemsPresenter.cs
- EasingFunctionBase.cs
- CodeGroup.cs
- IDispatchConstantAttribute.cs
- RenderDataDrawingContext.cs
- DispatcherExceptionFilterEventArgs.cs
- XamlClipboardData.cs
- StyleSheet.cs
- AnonymousIdentificationModule.cs
- TransformGroup.cs
- ReturnValue.cs
- Msec.cs
- DerivedKeySecurityToken.cs
- ProtocolsConfiguration.cs
- ConnectionStringEditor.cs
- SystemResourceHost.cs
- Events.cs
- DrawingContextWalker.cs
- VariableQuery.cs
- SafeRightsManagementHandle.cs
- IxmlLineInfo.cs
- SqlIdentifier.cs
- XPathNodeInfoAtom.cs
- WorkflowIdleElement.cs
- ResourceKey.cs
- WorkflowApplicationTerminatedException.cs
- base64Transforms.cs
- ContentElementAutomationPeer.cs
- AsnEncodedData.cs
- TabletCollection.cs
- CdpEqualityComparer.cs
- DataGridTable.cs
- CorrelationQueryBehavior.cs
- LongValidatorAttribute.cs
- Privilege.cs
- TransactionChannelFaultConverter.cs
- RankException.cs
- IChannel.cs
- GridPattern.cs
- OletxTransactionFormatter.cs
- TemplateModeChangedEventArgs.cs
- XmlComment.cs
- DropShadowBitmapEffect.cs
- FacetEnabledSchemaElement.cs
- TimeoutException.cs
- COM2PropertyDescriptor.cs
- TCPClient.cs
- InlineObject.cs