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
- NetworkInformationPermission.cs
- DocumentOrderComparer.cs
- FilterQuery.cs
- XmlUtil.cs
- ProfileService.cs
- ClonableStack.cs
- WeakReadOnlyCollection.cs
- HtmlElementEventArgs.cs
- NativeMethods.cs
- LineInfo.cs
- DataGridViewCellConverter.cs
- FixedSOMElement.cs
- SspiSafeHandles.cs
- TextTreeNode.cs
- HttpCacheVaryByContentEncodings.cs
- Tokenizer.cs
- WebPartsSection.cs
- SizeAnimationUsingKeyFrames.cs
- SurrogateSelector.cs
- TemplateControlCodeDomTreeGenerator.cs
- ListenDesigner.cs
- FragmentQuery.cs
- TraceEventCache.cs
- PeerTransportListenAddressConverter.cs
- ComNativeDescriptor.cs
- SessionParameter.cs
- XmlCustomFormatter.cs
- XmlNamespaceManager.cs
- SegmentTree.cs
- ForceCopyBuildProvider.cs
- EventLogger.cs
- InstanceNameConverter.cs
- ColumnWidthChangingEvent.cs
- DbConnectionStringBuilder.cs
- ZoneIdentityPermission.cs
- FusionWrap.cs
- Base64Encoding.cs
- CompiledXpathExpr.cs
- Solver.cs
- AnnotationResource.cs
- mediaeventargs.cs
- XmlSchemaException.cs
- RijndaelManagedTransform.cs
- DefaultValueTypeConverter.cs
- MissingFieldException.cs
- ArrayList.cs
- BindingsCollection.cs
- ipaddressinformationcollection.cs
- GenericPrincipal.cs
- SymLanguageVendor.cs
- DateTimeFormatInfoScanner.cs
- TableCellCollection.cs
- HtmlShim.cs
- GifBitmapDecoder.cs
- Menu.cs
- ServiceBehaviorElementCollection.cs
- HwndHostAutomationPeer.cs
- AuthenticationManager.cs
- BridgeDataRecord.cs
- InvokeWebServiceDesigner.cs
- Authorization.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DataGridTextBoxColumn.cs
- CallSiteHelpers.cs
- DbProviderFactory.cs
- SamlAuthenticationClaimResource.cs
- EventWaitHandleSecurity.cs
- Walker.cs
- Cursor.cs
- ProcessModelSection.cs
- RawStylusInput.cs
- DataGridViewSelectedCellCollection.cs
- AndCondition.cs
- AsyncCompletedEventArgs.cs
- XmlLanguageConverter.cs
- PbrsForward.cs
- SystemTcpStatistics.cs
- TickBar.cs
- DataSourceGeneratorException.cs
- NonSerializedAttribute.cs
- DeleteHelper.cs
- WsdlImporter.cs
- RectConverter.cs
- TagMapInfo.cs
- TimeoutValidationAttribute.cs
- TextPointer.cs
- AnnotationComponentManager.cs
- CodeSnippetCompileUnit.cs
- EncryptedPackage.cs
- ColumnResizeUndoUnit.cs
- SafeHandles.cs
- UniqueIdentifierService.cs
- ClientTargetCollection.cs
- SimpleApplicationHost.cs
- WinEventHandler.cs
- EmissiveMaterial.cs
- ExpressionLink.cs
- _emptywebproxy.cs
- RenderTargetBitmap.cs
- ArgumentException.cs