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
- RegistrationContext.cs
- OneOfConst.cs
- DocComment.cs
- HttpClientCertificate.cs
- IOException.cs
- ExtendedPropertyCollection.cs
- SqlIdentifier.cs
- ReachVisualSerializer.cs
- TextParaLineResult.cs
- QilTypeChecker.cs
- XamlBrushSerializer.cs
- NullReferenceException.cs
- ConnectionString.cs
- LineServices.cs
- SqlCacheDependencyDatabase.cs
- WebPartsPersonalizationAuthorization.cs
- StylusPointPropertyInfoDefaults.cs
- RegistrySecurity.cs
- SetState.cs
- Part.cs
- XmlDeclaration.cs
- StylusEventArgs.cs
- FileSystemWatcher.cs
- RadioButtonBaseAdapter.cs
- DbProviderConfigurationHandler.cs
- PostBackOptions.cs
- RegistrationServices.cs
- DropDownList.cs
- SortedDictionary.cs
- ContextDataSourceView.cs
- XsdDuration.cs
- TableProvider.cs
- X509IssuerSerialKeyIdentifierClause.cs
- TranslateTransform.cs
- SourceLineInfo.cs
- TransactionException.cs
- MetadataArtifactLoaderComposite.cs
- SchemaLookupTable.cs
- RegistrySecurity.cs
- SettingsPropertyIsReadOnlyException.cs
- X509CertificateStore.cs
- ToolStripItemEventArgs.cs
- ReadOnlyDataSource.cs
- Typography.cs
- TextEndOfParagraph.cs
- AlignmentYValidation.cs
- InputProviderSite.cs
- AbsoluteQuery.cs
- StringToken.cs
- ILGenerator.cs
- DataGridViewAutoSizeModeEventArgs.cs
- BitmapCodecInfo.cs
- WebPartManagerInternals.cs
- Span.cs
- HitTestParameters3D.cs
- Models.cs
- SQLBytes.cs
- PersonalizationDictionary.cs
- LogEntryHeaderDeserializer.cs
- EncodingDataItem.cs
- DataColumnChangeEvent.cs
- InvalidPipelineStoreException.cs
- WebBrowserHelper.cs
- RemoteWebConfigurationHostStream.cs
- ErrorHandler.cs
- TimelineClockCollection.cs
- ListViewDataItem.cs
- CloudCollection.cs
- FlowLayoutSettings.cs
- XmlWriter.cs
- XmlCustomFormatter.cs
- EncoderFallback.cs
- LinkLabel.cs
- OptimisticConcurrencyException.cs
- XmlWrappingReader.cs
- FactoryMaker.cs
- MsmqQueue.cs
- WebCodeGenerator.cs
- ThrowHelper.cs
- RectangleConverter.cs
- CopyAction.cs
- RegionData.cs
- TypeGeneratedEventArgs.cs
- AdministrationHelpers.cs
- TreeViewImageIndexConverter.cs
- KeysConverter.cs
- ReaderWriterLock.cs
- DecimalAverageAggregationOperator.cs
- BindToObject.cs
- ProjectedSlot.cs
- SocketException.cs
- WebAdminConfigurationHelper.cs
- DecimalAnimation.cs
- StorageModelBuildProvider.cs
- SqlDataSourceCache.cs
- Column.cs
- CodeExpressionStatement.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FrameworkElement.cs
- FlowDocumentReaderAutomationPeer.cs