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
- TraceSection.cs
- InfoCardHelper.cs
- Int32AnimationBase.cs
- LogSwitch.cs
- WrappedIUnknown.cs
- ReadOnlyHierarchicalDataSource.cs
- CopyNamespacesAction.cs
- LocatorPartList.cs
- QueryExpression.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DeferredTextReference.cs
- OutgoingWebResponseContext.cs
- newinstructionaction.cs
- CodeAttributeArgumentCollection.cs
- RenameRuleObjectDialog.Designer.cs
- XmlValidatingReaderImpl.cs
- ArglessEventHandlerProxy.cs
- NGCPageContentCollectionSerializerAsync.cs
- ImageListStreamer.cs
- PolicyStatement.cs
- SharedPersonalizationStateInfo.cs
- DeclaredTypeValidator.cs
- RepeaterItem.cs
- NameValueSectionHandler.cs
- CompilerHelpers.cs
- FrameworkElementFactoryMarkupObject.cs
- WrapPanel.cs
- HtmlElementCollection.cs
- TextContainerHelper.cs
- TextBlockAutomationPeer.cs
- GridViewColumnHeaderAutomationPeer.cs
- Label.cs
- DynamicRendererThreadManager.cs
- OnOperation.cs
- QilInvokeEarlyBound.cs
- ObjectQueryState.cs
- IISMapPath.cs
- PolicyLevel.cs
- SpecialFolderEnumConverter.cs
- XmlJsonWriter.cs
- QuotaExceededException.cs
- Expression.cs
- OptimalTextSource.cs
- CustomAttributeSerializer.cs
- DrawingState.cs
- PrintDialog.cs
- DelegatedStream.cs
- TimeoutValidationAttribute.cs
- MouseGestureValueSerializer.cs
- StrokeNodeData.cs
- ComponentResourceManager.cs
- MediaCommands.cs
- InfoCardPolicy.cs
- ServiceProviders.cs
- BadImageFormatException.cs
- NamedElement.cs
- XmlSerializerFormatAttribute.cs
- WinEventHandler.cs
- ProfileSettings.cs
- MemoryRecordBuffer.cs
- AutomationPropertyInfo.cs
- BaseAsyncResult.cs
- ThreadStartException.cs
- DBSchemaTable.cs
- SqlSupersetValidator.cs
- ZoneIdentityPermission.cs
- TimelineCollection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- storepermissionattribute.cs
- CodeTypeReference.cs
- UrlPropertyAttribute.cs
- IsolatedStorageException.cs
- DataGridLength.cs
- BookmarkScopeManager.cs
- InkCanvasSelection.cs
- SharedStream.cs
- Line.cs
- Matrix.cs
- TrustLevelCollection.cs
- DataGridViewComboBoxColumn.cs
- FolderNameEditor.cs
- Duration.cs
- MenuItemBinding.cs
- ComPlusTypeValidator.cs
- CommonProperties.cs
- DiagnosticSection.cs
- IisTraceWebEventProvider.cs
- EnumMember.cs
- BindingSource.cs
- ParagraphVisual.cs
- IpcClientChannel.cs
- PageThemeCodeDomTreeGenerator.cs
- XslNumber.cs
- BinHexDecoder.cs
- Assert.cs
- DllNotFoundException.cs
- PropertyDescriptorComparer.cs
- ConstructorArgumentAttribute.cs
- AVElementHelper.cs
- Control.cs