Code:
/ DotNET / DotNET / 8.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
- SparseMemoryStream.cs
- EventSetter.cs
- BooleanFacetDescriptionElement.cs
- Baml2006ReaderContext.cs
- RouteParametersHelper.cs
- FileSecurity.cs
- PortCache.cs
- PointCollection.cs
- SQLGuid.cs
- DataGridViewButtonColumn.cs
- _ListenerAsyncResult.cs
- ObjectHandle.cs
- AuthenticationConfig.cs
- Mouse.cs
- IncrementalReadDecoders.cs
- StringPropertyBuilder.cs
- InstanceLockLostException.cs
- UriWriter.cs
- Variable.cs
- DefaultParameterValueAttribute.cs
- AnnotationResourceCollection.cs
- handlecollector.cs
- TryCatch.cs
- SystemIdentity.cs
- SiblingIterators.cs
- AdornedElementPlaceholder.cs
- cache.cs
- BitmapFrame.cs
- SafeCancelMibChangeNotify.cs
- MulticastOption.cs
- ParameterCollectionEditorForm.cs
- AstTree.cs
- WhitespaceRuleReader.cs
- ContextQuery.cs
- DetailsViewUpdatedEventArgs.cs
- QueryOptionExpression.cs
- ContractTypeNameCollection.cs
- UTF32Encoding.cs
- TypeInitializationException.cs
- ConfigurationManager.cs
- CharacterBufferReference.cs
- XmlSchemaSequence.cs
- EntityDataSourceQueryBuilder.cs
- TextElementEnumerator.cs
- WebPartTransformer.cs
- ConfigUtil.cs
- ViewStateModeByIdAttribute.cs
- NavigationEventArgs.cs
- SmiRequestExecutor.cs
- Listen.cs
- ByeMessage11.cs
- ToolStripPanel.cs
- OLEDB_Enum.cs
- RepeaterItem.cs
- CalendarSelectionChangedEventArgs.cs
- TranslateTransform.cs
- Bidi.cs
- FormParameter.cs
- SchemaManager.cs
- RefreshPropertiesAttribute.cs
- ToolboxItemCollection.cs
- DataRowChangeEvent.cs
- ApplicationProxyInternal.cs
- BufferModeSettings.cs
- SqlComparer.cs
- CollectionBuilder.cs
- DataGridCommandEventArgs.cs
- GeometryGroup.cs
- ExpressionBindingCollection.cs
- StringTraceRecord.cs
- CodeDomSerializer.cs
- DispatcherSynchronizationContext.cs
- UInt32.cs
- Pts.cs
- MultiPageTextView.cs
- HttpWrapper.cs
- LogReservationCollection.cs
- QueryRewriter.cs
- TextEditor.cs
- AttributeCollection.cs
- MetabaseSettingsIis7.cs
- CodeNamespace.cs
- ExternalCalls.cs
- ThreadLocal.cs
- ConfigXmlSignificantWhitespace.cs
- WmlTextViewAdapter.cs
- FileDialog_Vista_Interop.cs
- ExpressionBuilderCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- MailHeaderInfo.cs
- _IPv4Address.cs
- DataSpaceManager.cs
- TagPrefixAttribute.cs
- HashLookup.cs
- OptionalRstParameters.cs
- HttpHandlersSection.cs
- configsystem.cs
- InputMethod.cs
- MessageEventSubscriptionService.cs
- WebPartConnection.cs