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
- RouteTable.cs
- NativeMethods.cs
- X509CertificateInitiatorClientCredential.cs
- DirectoryRootQuery.cs
- AssemblyCache.cs
- _LoggingObject.cs
- ControlBuilderAttribute.cs
- SafeFileMappingHandle.cs
- TdsParameterSetter.cs
- DispatcherEventArgs.cs
- PersonalizationState.cs
- Color.cs
- ProtectedConfigurationSection.cs
- Error.cs
- ObjectListDesigner.cs
- XmlSchemaDatatype.cs
- PathFigureCollection.cs
- EventBuilder.cs
- XmlILIndex.cs
- RankException.cs
- ThreadLocal.cs
- BamlWriter.cs
- FactoryRecord.cs
- RepeatEnumerable.cs
- DataServiceBuildProvider.cs
- DataServiceKeyAttribute.cs
- VisualBasicDesignerHelper.cs
- IssuanceLicense.cs
- HtmlUtf8RawTextWriter.cs
- WhitespaceSignificantCollectionAttribute.cs
- TargetFrameworkAttribute.cs
- HostExecutionContextManager.cs
- RedistVersionInfo.cs
- Terminate.cs
- DataTemplate.cs
- OutputCacheProfile.cs
- RoleGroupCollection.cs
- DataColumnSelectionConverter.cs
- DesignerLoader.cs
- StateMachineSubscriptionManager.cs
- SrgsElementFactory.cs
- FormViewDeletedEventArgs.cs
- TranslateTransform3D.cs
- HttpRequestWrapper.cs
- FrameworkObject.cs
- DecimalConverter.cs
- DrawingContextWalker.cs
- MaterializeFromAtom.cs
- CalendarAutoFormatDialog.cs
- SqlStatistics.cs
- Transform3DGroup.cs
- ConnectionPoint.cs
- XmlSerializerNamespaces.cs
- ObjectSecurity.cs
- ProxyElement.cs
- ColumnTypeConverter.cs
- BasicCellRelation.cs
- SystemBrushes.cs
- UnsafeNativeMethods.cs
- InfoCardKeyedHashAlgorithm.cs
- ParenExpr.cs
- MessageDecoder.cs
- IPipelineRuntime.cs
- EditCommandColumn.cs
- AdRotator.cs
- SafeNativeMethodsCLR.cs
- SmiXetterAccessMap.cs
- InputElement.cs
- QuaternionValueSerializer.cs
- FastEncoderWindow.cs
- Constants.cs
- BrowserInteropHelper.cs
- TdsParserHelperClasses.cs
- XmlDataImplementation.cs
- KeyedHashAlgorithm.cs
- diagnosticsswitches.cs
- JsonWriter.cs
- SrgsNameValueTag.cs
- SQLBoolean.cs
- GetWorkflowTree.cs
- XPathChildIterator.cs
- Crypto.cs
- SequentialWorkflowRootDesigner.cs
- DataReaderContainer.cs
- FontStretch.cs
- ListView.cs
- OleDbConnection.cs
- EmptyReadOnlyDictionaryInternal.cs
- IDispatchConstantAttribute.cs
- SerialReceived.cs
- XmlDataImplementation.cs
- Serializer.cs
- TextStore.cs
- BitmapFrameDecode.cs
- SqlConnectionStringBuilder.cs
- versioninfo.cs
- Context.cs
- _Rfc2616CacheValidators.cs
- CompositionAdorner.cs
- NavigationProgressEventArgs.cs