Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeParameterDeclarationExpression.cs / 1305376 / CodeParameterDeclarationExpression.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets /// the name of the parameter. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringUtil.cs
- PersonalizationProvider.cs
- BamlTreeUpdater.cs
- GatewayIPAddressInformationCollection.cs
- Scripts.cs
- complextypematerializer.cs
- GZipStream.cs
- SerializationInfo.cs
- base64Transforms.cs
- DefaultValidator.cs
- CodeMemberField.cs
- LinearGradientBrush.cs
- XmlSchemaImport.cs
- XmlUtil.cs
- WebPartManager.cs
- LayoutSettings.cs
- DeviceContexts.cs
- XmlNodeReader.cs
- FreezableDefaultValueFactory.cs
- _BufferOffsetSize.cs
- XmlSchema.cs
- Error.cs
- NativeMethods.cs
- CodeBlockBuilder.cs
- ListItemCollection.cs
- NegotiationTokenAuthenticatorStateCache.cs
- HuffModule.cs
- ConcatQueryOperator.cs
- HandlerWithFactory.cs
- QilTypeChecker.cs
- SqlStream.cs
- CommandEventArgs.cs
- CodeDomConfigurationHandler.cs
- FloaterBaseParaClient.cs
- LockedBorderGlyph.cs
- PartitionedDataSource.cs
- EncodingTable.cs
- MsmqOutputMessage.cs
- SafePEFileHandle.cs
- ManagementNamedValueCollection.cs
- WindowsFormsLinkLabel.cs
- XmlReader.cs
- StructuralComparisons.cs
- ObjectSet.cs
- CharEnumerator.cs
- StreamSecurityUpgradeProvider.cs
- UpdateCompiler.cs
- WebControl.cs
- RegexStringValidatorAttribute.cs
- UnsafeNativeMethods.cs
- NominalTypeEliminator.cs
- RegexCode.cs
- PasswordBox.cs
- Separator.cs
- MergeLocalizationDirectives.cs
- RenderDataDrawingContext.cs
- ConnectionManager.cs
- MarginCollapsingState.cs
- Application.cs
- WebRequestModuleElementCollection.cs
- BrowserTree.cs
- XmlSchemas.cs
- EdmFunctionAttribute.cs
- X509Chain.cs
- TextBlockAutomationPeer.cs
- DCSafeHandle.cs
- ContentElement.cs
- RealizedColumnsBlock.cs
- BitmapEffectCollection.cs
- RankException.cs
- BitSet.cs
- CodeCatchClause.cs
- List.cs
- FatalException.cs
- QueryServiceConfigHandle.cs
- SyndicationFeed.cs
- CompensatableSequenceActivity.cs
- ValidationSummaryDesigner.cs
- Types.cs
- XmlCharType.cs
- Hash.cs
- RadioButtonRenderer.cs
- AutomationPropertyInfo.cs
- ComponentGlyph.cs
- VarRefManager.cs
- CreateUserErrorEventArgs.cs
- FloatMinMaxAggregationOperator.cs
- WebGetAttribute.cs
- _SingleItemRequestCache.cs
- Aes.cs
- WSHttpBindingBase.cs
- StandardCommands.cs
- ValidationHelpers.cs
- DBCSCodePageEncoding.cs
- GrammarBuilderBase.cs
- AuthenticationSection.cs
- ProviderUtil.cs
- DtcInterfaces.cs
- ProfileParameter.cs
- DecoderFallback.cs