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
- SerializeAbsoluteContext.cs
- SourceLocationProvider.cs
- Setter.cs
- MSAANativeProvider.cs
- ToolboxBitmapAttribute.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- PipelineModuleStepContainer.cs
- TemplateNameScope.cs
- BulletChrome.cs
- ImageSource.cs
- WizardStepCollectionEditor.cs
- BypassElement.cs
- MediaCommands.cs
- MemberRestriction.cs
- GeneralTransform3DCollection.cs
- TemplateLookupAction.cs
- ConfigsHelper.cs
- Funcletizer.cs
- DmlSqlGenerator.cs
- ListBindingConverter.cs
- HtmlControlPersistable.cs
- CornerRadius.cs
- FreeFormDragDropManager.cs
- TableColumn.cs
- MimeTypeMapper.cs
- ToolStripKeyboardHandlingService.cs
- EnumValidator.cs
- OptimizedTemplateContentHelper.cs
- CopyNodeSetAction.cs
- CodeTypeMember.cs
- DictionaryBase.cs
- ListBoxAutomationPeer.cs
- SimpleTypesSurrogate.cs
- CodeDOMUtility.cs
- WindowsSlider.cs
- BaseTemplateParser.cs
- EntityCommand.cs
- NamespaceTable.cs
- Buffer.cs
- DataBoundControlHelper.cs
- XpsSerializationManagerAsync.cs
- XmlAnyAttributeAttribute.cs
- Misc.cs
- DataObjectCopyingEventArgs.cs
- ZipQueryOperator.cs
- EventPrivateKey.cs
- BindingExpressionUncommonField.cs
- translator.cs
- EntityConnectionStringBuilder.cs
- SerializationTrace.cs
- ObjectItemCollection.cs
- UserControl.cs
- PenThreadWorker.cs
- ControlBindingsConverter.cs
- ImageDrawing.cs
- odbcmetadatacolumnnames.cs
- ToolStripDropDownClosedEventArgs.cs
- OptimizerPatterns.cs
- MonitorWrapper.cs
- IDReferencePropertyAttribute.cs
- CounterCreationDataCollection.cs
- XmlLanguageConverter.cs
- WmfPlaceableFileHeader.cs
- ToolStripLocationCancelEventArgs.cs
- COM2PropertyBuilderUITypeEditor.cs
- AsyncSerializedWorker.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- TypeTypeConverter.cs
- PathSegmentCollection.cs
- NotImplementedException.cs
- RepeaterItemCollection.cs
- AmbientValueAttribute.cs
- BStrWrapper.cs
- RSAPKCS1SignatureFormatter.cs
- AttributeQuery.cs
- XmlMembersMapping.cs
- EdgeProfileValidation.cs
- keycontainerpermission.cs
- WindowsComboBox.cs
- RNGCryptoServiceProvider.cs
- BinaryFormatter.cs
- SoapCommonClasses.cs
- UnsafeNativeMethods.cs
- TerminatorSinks.cs
- Page.cs
- GcHandle.cs
- Rules.cs
- RuntimeConfigLKG.cs
- CuspData.cs
- CssTextWriter.cs
- Logging.cs
- Point3DCollection.cs
- MdiWindowListStrip.cs
- XmlText.cs
- DataGridColumnHeaderCollection.cs
- NonceToken.cs
- DataTemplateSelector.cs
- Triplet.cs
- DispatcherSynchronizationContext.cs
- HMACRIPEMD160.cs