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
- DataGridViewRowPostPaintEventArgs.cs
- NullableDecimalAverageAggregationOperator.cs
- ControlBuilder.cs
- HttpCachePolicyElement.cs
- HttpMethodConstraint.cs
- Token.cs
- XPathParser.cs
- SiteMapDataSourceView.cs
- ResumeStoryboard.cs
- XmlNamespaceDeclarationsAttribute.cs
- AuthenticationService.cs
- SqlReferenceCollection.cs
- BindingGroup.cs
- Helpers.cs
- SizeFConverter.cs
- RealizationContext.cs
- FileStream.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TypeUtil.cs
- DesignerRegion.cs
- GroupBox.cs
- PersistChildrenAttribute.cs
- DbDataReader.cs
- ResourceSet.cs
- ImageMap.cs
- EndOfStreamException.cs
- VariableQuery.cs
- XamlToRtfParser.cs
- ApplicationDirectoryMembershipCondition.cs
- ProcessHostMapPath.cs
- OutputCacheProviderCollection.cs
- IisTraceListener.cs
- ToolStripItemEventArgs.cs
- ZoomPercentageConverter.cs
- TokenBasedSet.cs
- MailMessageEventArgs.cs
- CompressionTransform.cs
- CodeAttributeDeclarationCollection.cs
- ToolStripCustomTypeDescriptor.cs
- RequestCachePolicyConverter.cs
- CompositeKey.cs
- Accessible.cs
- LocalizabilityAttribute.cs
- LogEntry.cs
- Attributes.cs
- ConfigXmlElement.cs
- StylusShape.cs
- smtppermission.cs
- RuntimeArgumentHandle.cs
- SystemFonts.cs
- AssemblyCache.cs
- DependencyObjectValidator.cs
- XmlSchemaExporter.cs
- XmlSchemaCompilationSettings.cs
- loginstatus.cs
- SortedList.cs
- CatalogPartChrome.cs
- CustomAttributeFormatException.cs
- WebPartMinimizeVerb.cs
- ProgressiveCrcCalculatingStream.cs
- NamespaceCollection.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- CommandLibraryHelper.cs
- ArgumentNullException.cs
- StrokeCollectionDefaultValueFactory.cs
- MethodToken.cs
- ComboBoxItem.cs
- DataGridColumnCollection.cs
- EllipseGeometry.cs
- ListSortDescription.cs
- OperandQuery.cs
- InkCollectionBehavior.cs
- BindingsCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- TableItemPatternIdentifiers.cs
- MessageRpc.cs
- TypeBrowserDialog.cs
- BreakRecordTable.cs
- TextOnlyOutput.cs
- Authorization.cs
- MarkupProperty.cs
- HttpVersion.cs
- Brush.cs
- TextDecoration.cs
- GlobalItem.cs
- ping.cs
- CookielessData.cs
- SchemaCollectionPreprocessor.cs
- OleDbDataAdapter.cs
- WebPartAuthorizationEventArgs.cs
- EntityDataSourceStatementEditorForm.cs
- ResetableIterator.cs
- MachineKeyValidationConverter.cs
- SQLInt64Storage.cs
- CheckedListBox.cs
- SyndicationItem.cs
- _WebProxyDataBuilder.cs
- Run.cs
- FileEnumerator.cs