Code:
/ FX-1434 / FX-1434 / 1.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
- altserialization.cs
- RewritingSimplifier.cs
- AssemblyName.cs
- MetadataItemSerializer.cs
- ClientConfigPaths.cs
- FontInfo.cs
- CookieParameter.cs
- PlainXmlWriter.cs
- EraserBehavior.cs
- CommonGetThemePartSize.cs
- ControlBuilder.cs
- QueryResponse.cs
- DrawListViewItemEventArgs.cs
- WindowsNonControl.cs
- IsolatedStoragePermission.cs
- DisplayToken.cs
- FileInfo.cs
- VerificationAttribute.cs
- CodeThrowExceptionStatement.cs
- MouseOverProperty.cs
- WmfPlaceableFileHeader.cs
- UserControlDocumentDesigner.cs
- PackageFilter.cs
- EnumDataContract.cs
- UnicodeEncoding.cs
- CaseInsensitiveComparer.cs
- XmlReader.cs
- RedistVersionInfo.cs
- DeliveryStrategy.cs
- ResourceDefaultValueAttribute.cs
- AttachmentService.cs
- RectKeyFrameCollection.cs
- ParagraphVisual.cs
- SqlCommand.cs
- WorkflowInvoker.cs
- DispatchWrapper.cs
- Decimal.cs
- DispatchWrapper.cs
- VisualSerializer.cs
- ComPersistableTypeElement.cs
- BamlReader.cs
- HandlerBase.cs
- ConfigurationValue.cs
- IntSumAggregationOperator.cs
- ProviderIncompatibleException.cs
- CapabilitiesSection.cs
- JsonWriterDelegator.cs
- XmlSchemas.cs
- CompositionCommandSet.cs
- MaskedTextBox.cs
- DateTimeFormatInfo.cs
- MetafileHeaderWmf.cs
- BaseAppDomainProtocolHandler.cs
- QueryResults.cs
- DbCommandDefinition.cs
- CapabilitiesUse.cs
- ExpressionParser.cs
- RightsManagementPermission.cs
- _UriTypeConverter.cs
- MobileListItem.cs
- SharedTcpTransportManager.cs
- ScriptingWebServicesSectionGroup.cs
- MexHttpBindingCollectionElement.cs
- Size3D.cs
- CanonicalFormWriter.cs
- BrowserTree.cs
- MULTI_QI.cs
- DnsCache.cs
- DataGridColumn.cs
- DetailsViewModeEventArgs.cs
- CodeTypeMember.cs
- DataGridViewCellEventArgs.cs
- InternalConfigConfigurationFactory.cs
- ProxyManager.cs
- BitmapSizeOptions.cs
- _SafeNetHandles.cs
- FileClassifier.cs
- EntityDataSourceView.cs
- DataView.cs
- CodeAttachEventStatement.cs
- OutputCacheSettings.cs
- MaterialGroup.cs
- XmlSequenceWriter.cs
- SspiSafeHandles.cs
- DescendentsWalkerBase.cs
- PermissionToken.cs
- sitestring.cs
- FixedSOMImage.cs
- AppearanceEditorPart.cs
- ObjectAnimationUsingKeyFrames.cs
- StringSource.cs
- InterleavedZipPartStream.cs
- TemplateControlParser.cs
- SortKey.cs
- MostlySingletonList.cs
- StringPropertyBuilder.cs
- GenericTypeParameterBuilder.cs
- _UriTypeConverter.cs
- FileRecordSequenceHelper.cs
- OdbcCommand.cs