Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeParameterDeclarationExpression.cs / 1305376 / CodeParameterDeclarationExpression.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets /// the name of the parameter. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ForeignConstraint.cs
- DESCryptoServiceProvider.cs
- MenuBase.cs
- StylusPointPropertyInfoDefaults.cs
- InheritanceContextHelper.cs
- TypeValidationEventArgs.cs
- BinaryUtilClasses.cs
- BitmapEffectDrawingContextWalker.cs
- RC2CryptoServiceProvider.cs
- StreamGeometryContext.cs
- NoClickablePointException.cs
- PartitionerStatic.cs
- CancelEventArgs.cs
- WebPartManagerInternals.cs
- GetReadStreamResult.cs
- ControlIdConverter.cs
- ClrProviderManifest.cs
- RoleManagerEventArgs.cs
- TreeNodeClickEventArgs.cs
- SqlDataRecord.cs
- SecureEnvironment.cs
- NegatedCellConstant.cs
- DataSourceCache.cs
- TextEditorDragDrop.cs
- ContentDesigner.cs
- WebBrowserContainer.cs
- ConversionHelper.cs
- XmlTextAttribute.cs
- DispatchChannelSink.cs
- CompositeDataBoundControl.cs
- MsmqActivation.cs
- bidPrivateBase.cs
- XmlUrlResolver.cs
- BulletedListEventArgs.cs
- BindingNavigator.cs
- TraceContextRecord.cs
- SmtpReplyReader.cs
- XmlSortKeyAccumulator.cs
- BuilderPropertyEntry.cs
- Config.cs
- MD5.cs
- BitmapInitialize.cs
- HostedHttpTransportManager.cs
- BinHexDecoder.cs
- BindingManagerDataErrorEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- XmlSchemaAttributeGroup.cs
- XmlILTrace.cs
- ClientBuildManagerCallback.cs
- ChtmlFormAdapter.cs
- ObjectViewFactory.cs
- ButtonPopupAdapter.cs
- ImpersonationContext.cs
- StandardToolWindows.cs
- DrawingImage.cs
- StreamWithDictionary.cs
- VisualProxy.cs
- ApplicationTrust.cs
- AssemblyAttributesGoHere.cs
- RoutingTable.cs
- _AuthenticationState.cs
- TableAdapterManagerNameHandler.cs
- Renderer.cs
- ModifierKeysConverter.cs
- HttpDebugHandler.cs
- ProxyDataContractResolver.cs
- GroupItem.cs
- WebPartsPersonalization.cs
- XmlSerializerAssemblyAttribute.cs
- SharedConnectionInfo.cs
- Vector.cs
- LineServicesRun.cs
- Msec.cs
- SystemIPGlobalProperties.cs
- MsmqInputSessionChannel.cs
- DragDrop.cs
- ReadOnlyDataSource.cs
- Model3DGroup.cs
- WsdlParser.cs
- SimpleColumnProvider.cs
- FileLevelControlBuilderAttribute.cs
- DataGridViewLayoutData.cs
- DataBoundControl.cs
- DrawingGroupDrawingContext.cs
- TextFormatterImp.cs
- ValidatingReaderNodeData.cs
- SimpleFieldTemplateUserControl.cs
- CodeAccessSecurityEngine.cs
- XmlIgnoreAttribute.cs
- ErrorLog.cs
- ColumnBinding.cs
- NodeLabelEditEvent.cs
- ResourceReferenceKeyNotFoundException.cs
- SqlCommandSet.cs
- RuleSetDialog.Designer.cs
- CreateUserWizard.cs
- ColumnMapVisitor.cs
- MouseCaptureWithinProperty.cs
- DataColumnPropertyDescriptor.cs
- PassportIdentity.cs