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
- TextBox.cs
- MaskedTextBox.cs
- ProgressBar.cs
- _DomainName.cs
- FieldNameLookup.cs
- XmlSchemaParticle.cs
- GeneralTransform3D.cs
- ThaiBuddhistCalendar.cs
- Nodes.cs
- XamlWriterExtensions.cs
- DrawingDrawingContext.cs
- XmlSchemaAppInfo.cs
- PerspectiveCamera.cs
- ListBase.cs
- SizeAnimationClockResource.cs
- CodeMethodInvokeExpression.cs
- Section.cs
- CompiledAction.cs
- _TransmitFileOverlappedAsyncResult.cs
- ProfileEventArgs.cs
- UserInitiatedNavigationPermission.cs
- ArcSegment.cs
- MetabaseServerConfig.cs
- DataObjectEventArgs.cs
- Range.cs
- ClientType.cs
- GridViewAutomationPeer.cs
- PerformanceCounterPermission.cs
- SynchronizedDispatch.cs
- WinEventHandler.cs
- ConfigurationSection.cs
- HttpInputStream.cs
- initElementDictionary.cs
- DrawingContextWalker.cs
- DeviceContext2.cs
- ResourceProperty.cs
- DataMemberFieldConverter.cs
- APCustomTypeDescriptor.cs
- ToolbarAUtomationPeer.cs
- ClassImporter.cs
- DatePicker.cs
- SoapClientProtocol.cs
- ValueExpressions.cs
- SafeCryptoHandles.cs
- SiteMapDataSourceView.cs
- AutomationIdentifier.cs
- ReversePositionQuery.cs
- NativeMethods.cs
- CompilerLocalReference.cs
- HGlobalSafeHandle.cs
- MouseActionValueSerializer.cs
- MetadataPropertyCollection.cs
- SafeNativeMethods.cs
- ComponentRenameEvent.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SafeNativeMethodsCLR.cs
- ISAPIWorkerRequest.cs
- SessionSwitchEventArgs.cs
- ScriptBehaviorDescriptor.cs
- PriorityItem.cs
- _RequestCacheProtocol.cs
- DefaultPropertiesToSend.cs
- ChildTable.cs
- SqlXmlStorage.cs
- RegexStringValidatorAttribute.cs
- RangeValuePattern.cs
- IntegerCollectionEditor.cs
- GroupItemAutomationPeer.cs
- EventLogger.cs
- ComUdtElement.cs
- XsltSettings.cs
- RouteCollection.cs
- EncoderBestFitFallback.cs
- DebugView.cs
- ZipIOCentralDirectoryBlock.cs
- RadioButtonPopupAdapter.cs
- HashMembershipCondition.cs
- ImageClickEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- TextSpan.cs
- StandardCommands.cs
- CodeGen.cs
- ProfileEventArgs.cs
- StylusPoint.cs
- HighlightComponent.cs
- WpfXamlMember.cs
- DefaultClaimSet.cs
- UnsafeNativeMethods.cs
- SoapSchemaExporter.cs
- XmlNullResolver.cs
- Span.cs
- TdsParameterSetter.cs
- XmlException.cs
- SqlInternalConnectionTds.cs
- HtmlLink.cs
- ResolveNameEventArgs.cs
- CollectionViewGroupRoot.cs
- BrowserPolicyValidator.cs
- ListCommandEventArgs.cs
- wgx_sdk_version.cs