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
- _NestedSingleAsyncResult.cs
- QuaternionValueSerializer.cs
- TextWriterTraceListener.cs
- GridViewHeaderRowPresenter.cs
- SyndicationDeserializer.cs
- HttpApplicationFactory.cs
- PartialTrustVisibleAssembly.cs
- GlyphElement.cs
- CatalogPartCollection.cs
- XmlBaseWriter.cs
- ConfigurationLocationCollection.cs
- ThreadNeutralSemaphore.cs
- Win32.cs
- AttributeQuery.cs
- SqlBuffer.cs
- CellQuery.cs
- Marshal.cs
- CheckBoxField.cs
- XmlSchemaSimpleType.cs
- Int16KeyFrameCollection.cs
- ChooseAction.cs
- ListViewEditEventArgs.cs
- InfiniteIntConverter.cs
- RijndaelManaged.cs
- IntMinMaxAggregationOperator.cs
- ListViewItemEventArgs.cs
- OptimalBreakSession.cs
- DataGrid.cs
- ToolStripPanelRenderEventArgs.cs
- Dynamic.cs
- PeerApplicationLaunchInfo.cs
- PointF.cs
- GridViewDesigner.cs
- SafeSystemMetrics.cs
- TryCatchDesigner.xaml.cs
- StringToken.cs
- SharedDp.cs
- LinkedResource.cs
- PropertySourceInfo.cs
- XhtmlBasicControlAdapter.cs
- IProducerConsumerCollection.cs
- SecUtil.cs
- SafeCoTaskMem.cs
- DataGridAddNewRow.cs
- BlurEffect.cs
- SafeThreadHandle.cs
- StyleHelper.cs
- StringInfo.cs
- ObjectListShowCommandsEventArgs.cs
- DataSourceView.cs
- SchemaTableOptionalColumn.cs
- UIntPtr.cs
- JsonSerializer.cs
- DataGridViewIntLinkedList.cs
- Registry.cs
- Merger.cs
- SqlCommandSet.cs
- Cloud.cs
- EntityDataSourceColumn.cs
- arc.cs
- SessionSwitchEventArgs.cs
- WorkflowDefinitionContext.cs
- CheckBoxFlatAdapter.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- ResXResourceWriter.cs
- XmlSchemaCollection.cs
- ValidatedControlConverter.cs
- DelegateCompletionCallbackWrapper.cs
- MyContact.cs
- CellCreator.cs
- Quaternion.cs
- RegisteredExpandoAttribute.cs
- ManifestBasedResourceGroveler.cs
- EventEntry.cs
- DllNotFoundException.cs
- NetSectionGroup.cs
- BoundField.cs
- TransformGroup.cs
- WebRequestModuleElementCollection.cs
- FixedPageStructure.cs
- SaveRecipientRequest.cs
- DragDrop.cs
- MsmqChannelFactory.cs
- SerTrace.cs
- TargetInvocationException.cs
- DodSequenceMerge.cs
- LoaderAllocator.cs
- Rfc2898DeriveBytes.cs
- WebProxyScriptElement.cs
- SoapAttributes.cs
- XmlReaderSettings.cs
- TextDecoration.cs
- DynamicDataRoute.cs
- MemoryMappedFile.cs
- RequestValidator.cs
- TransactionFlowOption.cs
- TimelineGroup.cs
- CellParaClient.cs
- BitmapEffectGeneralTransform.cs
- HGlobalSafeHandle.cs