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
- RepeaterItemEventArgs.cs
- DelimitedListTraceListener.cs
- SQLStringStorage.cs
- UpdateRecord.cs
- EdmError.cs
- WebPartManagerInternals.cs
- InteropAutomationProvider.cs
- HashAlgorithm.cs
- XmlCountingReader.cs
- QilTypeChecker.cs
- TreeNodeCollectionEditor.cs
- HtmlElementEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- Int32Converter.cs
- ObjectCloneHelper.cs
- Substitution.cs
- TransformerConfigurationWizardBase.cs
- ClientFormsAuthenticationCredentials.cs
- MinimizableAttributeTypeConverter.cs
- TextHidden.cs
- UnsafeNativeMethodsTablet.cs
- ScriptControl.cs
- FormViewDeleteEventArgs.cs
- UpdatePanel.cs
- FaultCallbackWrapper.cs
- TransformValueSerializer.cs
- FontStretchConverter.cs
- CodeValidator.cs
- CommonDialog.cs
- JsonUriDataContract.cs
- StreamGeometry.cs
- ICollection.cs
- ServiceModelSecurityTokenRequirement.cs
- CodeObjectCreateExpression.cs
- Queue.cs
- ScrollProperties.cs
- RichTextBoxDesigner.cs
- SerializationInfo.cs
- GenericTypeParameterBuilder.cs
- OleDbException.cs
- XmlComplianceUtil.cs
- DataBindingCollection.cs
- AttachedAnnotationChangedEventArgs.cs
- PeerChannelFactory.cs
- GeometryValueSerializer.cs
- HyperLink.cs
- FrameworkContextData.cs
- HostingPreferredMapPath.cs
- FragmentQuery.cs
- SessionStateContainer.cs
- FieldAccessException.cs
- Helpers.cs
- Binding.cs
- TextEditorContextMenu.cs
- ObjectListDataBindEventArgs.cs
- HwndPanningFeedback.cs
- DesignerActionUI.cs
- SpellerError.cs
- XmlWhitespace.cs
- FileDialogPermission.cs
- COMException.cs
- CompiledQueryCacheEntry.cs
- CodeAttributeArgument.cs
- SoapElementAttribute.cs
- CodeTypeDelegate.cs
- CheckBoxAutomationPeer.cs
- EntityWithChangeTrackerStrategy.cs
- SymDocumentType.cs
- WindowsAuthenticationEventArgs.cs
- SemanticKeyElement.cs
- ConfigurationStrings.cs
- FtpWebRequest.cs
- CheckedPointers.cs
- BamlLocalizabilityResolver.cs
- PathStreamGeometryContext.cs
- DefaultAutoFieldGenerator.cs
- XmlSchemaGroup.cs
- ServerValidateEventArgs.cs
- ProxyWebPartManagerDesigner.cs
- DefaultDiscoveryServiceExtension.cs
- FunctionQuery.cs
- XmlILTrace.cs
- XmlValueConverter.cs
- IsolatedStorageException.cs
- StreamHelper.cs
- SkipQueryOptionExpression.cs
- XmlSchemaSequence.cs
- ButtonField.cs
- VisualCollection.cs
- ClientSettingsSection.cs
- SessionConnectionReader.cs
- DataGridColumn.cs
- DataGridPagingPage.cs
- DateTimeFormatInfoScanner.cs
- _NTAuthentication.cs
- PropertyKey.cs
- IntegrationExceptionEventArgs.cs
- XmlSchemaExporter.cs
- Parser.cs
- HtmlPageAdapter.cs