Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / TypeSystem / ParameterInfo.cs / 1305376 / ParameterInfo.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.CodeDom; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Globalization; using System.Reflection; #region DesignTimeParameterInfo internal sealed class DesignTimeParameterInfo: ParameterInfo { #region Members and Constructors private CodeTypeReference codeParameterType; private bool isRef = false; internal DesignTimeParameterInfo(CodeParameterDeclarationExpression codeParameter, int position, MemberInfo member) { this.MemberImpl = member; this.NameImpl = Helper.EnsureTypeName(codeParameter.Name); this.codeParameterType = codeParameter.Type; this.AttrsImpl = Helper.ConvertToParameterAttributes(codeParameter.Direction); this.isRef = (codeParameter.Direction == FieldDirection.Ref); this.PositionImpl = position; } // return param ctor internal DesignTimeParameterInfo(CodeTypeReference codeParameterType, MemberInfo member) { this.MemberImpl = member; this.NameImpl = null; this.codeParameterType = codeParameterType; this.AttrsImpl = ParameterAttributes.None; this.PositionImpl = -1; } #endregion #region Pararmeter Info overrides public override Type ParameterType { get { string type = DesignTimeType.GetTypeNameFromCodeTypeReference(this.codeParameterType, (this.Member.DeclaringType as DesignTimeType)); if ((this.AttrsImpl & ParameterAttributes.Out) > 0 || this.isRef) type += '&'; // Append with & for (ref & out) parameter types this.ClassImpl = (this.Member.DeclaringType as DesignTimeType).ResolveType(type); return base.ParameterType; } } #endregion } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.ComponentModel.Compiler { using System; using System.CodeDom; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Globalization; using System.Reflection; #region DesignTimeParameterInfo internal sealed class DesignTimeParameterInfo: ParameterInfo { #region Members and Constructors private CodeTypeReference codeParameterType; private bool isRef = false; internal DesignTimeParameterInfo(CodeParameterDeclarationExpression codeParameter, int position, MemberInfo member) { this.MemberImpl = member; this.NameImpl = Helper.EnsureTypeName(codeParameter.Name); this.codeParameterType = codeParameter.Type; this.AttrsImpl = Helper.ConvertToParameterAttributes(codeParameter.Direction); this.isRef = (codeParameter.Direction == FieldDirection.Ref); this.PositionImpl = position; } // return param ctor internal DesignTimeParameterInfo(CodeTypeReference codeParameterType, MemberInfo member) { this.MemberImpl = member; this.NameImpl = null; this.codeParameterType = codeParameterType; this.AttrsImpl = ParameterAttributes.None; this.PositionImpl = -1; } #endregion #region Pararmeter Info overrides public override Type ParameterType { get { string type = DesignTimeType.GetTypeNameFromCodeTypeReference(this.codeParameterType, (this.Member.DeclaringType as DesignTimeType)); if ((this.AttrsImpl & ParameterAttributes.Out) > 0 || this.isRef) type += '&'; // Append with & for (ref & out) parameter types this.ClassImpl = (this.Member.DeclaringType as DesignTimeType).ResolveType(type); return base.ParameterType; } } #endregion } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Thread.cs
- TabPage.cs
- NumericUpDownAcceleration.cs
- SqlDataRecord.cs
- StateMachineSubscriptionManager.cs
- Switch.cs
- DockPatternIdentifiers.cs
- ProtocolsConfigurationEntry.cs
- loginstatus.cs
- TakeOrSkipQueryOperator.cs
- Encoding.cs
- Process.cs
- SignedPkcs7.cs
- TableCellCollection.cs
- PaintEvent.cs
- TokenCreationException.cs
- StreamingContext.cs
- ValidatorCompatibilityHelper.cs
- TreeViewItemAutomationPeer.cs
- ConfigPathUtility.cs
- ConfigurationManagerInternal.cs
- AssemblyCache.cs
- ListBoxChrome.cs
- PathFigureCollection.cs
- X509Certificate2.cs
- CollectionType.cs
- ObjectViewFactory.cs
- SystemParameters.cs
- FontStretch.cs
- mediaeventargs.cs
- QilPatternFactory.cs
- SupportingTokenSpecification.cs
- BrowserCapabilitiesCompiler.cs
- CacheMode.cs
- LiteralControl.cs
- AdPostCacheSubstitution.cs
- bidPrivateBase.cs
- WebPartTracker.cs
- SourceSwitch.cs
- ListViewDesigner.cs
- ShutDownListener.cs
- JsonSerializer.cs
- GridViewRowCollection.cs
- SqlMethodAttribute.cs
- ConfigurationStrings.cs
- LocalizationComments.cs
- SimpleNameService.cs
- comcontractssection.cs
- ColumnHeader.cs
- Image.cs
- EventLogPermissionAttribute.cs
- ResourceAssociationSetEnd.cs
- DataGridrowEditEndingEventArgs.cs
- ProjectionCamera.cs
- FixedSOMFixedBlock.cs
- D3DImage.cs
- ConfigurationManagerInternalFactory.cs
- ToolboxComponentsCreatingEventArgs.cs
- SymLanguageType.cs
- DataGridViewCellValueEventArgs.cs
- TextServicesProperty.cs
- __Error.cs
- CloudCollection.cs
- ListSourceHelper.cs
- TextureBrush.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SqlFactory.cs
- RightsManagementPermission.cs
- MetadataItem.cs
- XmlSerializerFactory.cs
- References.cs
- Calendar.cs
- NativeMethodsOther.cs
- BigInt.cs
- DockPanel.cs
- selecteditemcollection.cs
- OrderedDictionary.cs
- SchemaCollectionCompiler.cs
- InputLanguageManager.cs
- VectorCollection.cs
- TracePayload.cs
- TextTreeTextNode.cs
- FormViewDesigner.cs
- CharacterMetricsDictionary.cs
- CLSCompliantAttribute.cs
- LogEntryHeaderDeserializer.cs
- DrawingImage.cs
- UserControlCodeDomTreeGenerator.cs
- SortDescription.cs
- FormViewUpdatedEventArgs.cs
- SafeTimerHandle.cs
- SuppressMessageAttribute.cs
- Page.cs
- ColorConvertedBitmap.cs
- HostedTcpTransportManager.cs
- UMPAttributes.cs
- RecordManager.cs
- DataBindingCollectionConverter.cs
- SiteMapNodeCollection.cs
- HandledEventArgs.cs