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
- InteropDesigner.xaml.cs
- Light.cs
- BufferModesCollection.cs
- BindingCompleteEventArgs.cs
- InheritanceAttribute.cs
- AnnotationComponentManager.cs
- SqlConnection.cs
- PageParser.cs
- InputLanguage.cs
- DragEvent.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- IMembershipProvider.cs
- XmlElementCollection.cs
- MULTI_QI.cs
- BmpBitmapDecoder.cs
- SplashScreenNativeMethods.cs
- DashStyles.cs
- WebHeaderCollection.cs
- StaticFileHandler.cs
- TraceContextEventArgs.cs
- sqlpipe.cs
- IsolatedStorage.cs
- MetadataUtilsSmi.cs
- Rect3DConverter.cs
- PersonalizationStateInfo.cs
- ProcessModelSection.cs
- FontResourceCache.cs
- DocumentViewer.cs
- ServiceDurableInstanceContextProvider.cs
- MobileCategoryAttribute.cs
- PathFigureCollection.cs
- DocumentEventArgs.cs
- IgnoreFileBuildProvider.cs
- DescendentsWalker.cs
- ObjectCloneHelper.cs
- Normalization.cs
- Win32.cs
- CacheChildrenQuery.cs
- CodeFieldReferenceExpression.cs
- CommandID.cs
- BinaryExpressionHelper.cs
- ReferencedType.cs
- PreviewKeyDownEventArgs.cs
- CharConverter.cs
- InstanceDescriptor.cs
- ListViewItemSelectionChangedEvent.cs
- ValueOfAction.cs
- Composition.cs
- IApplicationTrustManager.cs
- BufferedReadStream.cs
- DataKey.cs
- DataServiceConfiguration.cs
- MembershipAdapter.cs
- SerializationException.cs
- AppLevelCompilationSectionCache.cs
- VirtualPathUtility.cs
- WebPartChrome.cs
- CodeEventReferenceExpression.cs
- FileNotFoundException.cs
- COM2PictureConverter.cs
- XmlException.cs
- ResizingMessageFilter.cs
- SimpleApplicationHost.cs
- ApplicationHost.cs
- PasswordBoxAutomationPeer.cs
- CodeAccessSecurityEngine.cs
- Matrix3DConverter.cs
- BinaryFormatter.cs
- DBPropSet.cs
- IConvertible.cs
- GenericEnumerator.cs
- KeyboardNavigation.cs
- Group.cs
- AutomationPatternInfo.cs
- SafeProcessHandle.cs
- DataTableExtensions.cs
- DataColumnCollection.cs
- XmlMapping.cs
- GlobalProxySelection.cs
- MessageDecoder.cs
- SQLDecimal.cs
- HTMLTagNameToTypeMapper.cs
- StackOverflowException.cs
- SpecularMaterial.cs
- VirtualizingStackPanel.cs
- TableLayoutRowStyleCollection.cs
- AttributedMetaModel.cs
- DBProviderConfigurationHandler.cs
- Label.cs
- XmlElement.cs
- SecurityDocument.cs
- LoginCancelEventArgs.cs
- XmlUrlEditor.cs
- FileDialogCustomPlace.cs
- DbConnectionPool.cs
- ToolStripSeparatorRenderEventArgs.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- SerializationFieldInfo.cs
- EventWaitHandleSecurity.cs
- PrivilegedConfigurationManager.cs