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
- Label.cs
- ProfileInfo.cs
- XPathNavigatorReader.cs
- GeneratedView.cs
- Brush.cs
- PassportAuthentication.cs
- OperatingSystem.cs
- DeclarativeCatalogPart.cs
- ContextActivityUtils.cs
- ObjectStateManager.cs
- FrameworkElementFactory.cs
- QueryOperator.cs
- DbParameterCollectionHelper.cs
- XmlAttributeCache.cs
- TextSelectionHelper.cs
- ObjectItemLoadingSessionData.cs
- ObjectToken.cs
- BitmapEffect.cs
- IisTraceListener.cs
- PriorityBindingExpression.cs
- MethodExpr.cs
- DBSqlParser.cs
- SqlClientFactory.cs
- PackageStore.cs
- ConnectionProviderAttribute.cs
- AppDomainManager.cs
- HttpCookie.cs
- DataObject.cs
- ReferencedAssembly.cs
- MeasureItemEvent.cs
- returneventsaver.cs
- ClickablePoint.cs
- isolationinterop.cs
- CollectionType.cs
- ScrollItemProviderWrapper.cs
- Utils.cs
- CopyNamespacesAction.cs
- PolygonHotSpot.cs
- XPathExpr.cs
- ButtonStandardAdapter.cs
- WebPartConnectionsCancelVerb.cs
- ProxyFragment.cs
- ConfigurationFileMap.cs
- DefaultWorkflowLoaderService.cs
- HttpDictionary.cs
- GatewayDefinition.cs
- DataBindEngine.cs
- NamedObject.cs
- UrlMapping.cs
- GenericRootAutomationPeer.cs
- XmlUtil.cs
- CompositeCollectionView.cs
- X509Utils.cs
- XmlIgnoreAttribute.cs
- FormViewCommandEventArgs.cs
- OracleCommand.cs
- NamespaceList.cs
- StrongNameUtility.cs
- Double.cs
- PropertySet.cs
- UserPersonalizationStateInfo.cs
- Oid.cs
- DataContext.cs
- safePerfProviderHandle.cs
- ProfileManager.cs
- ListBindingConverter.cs
- NonSerializedAttribute.cs
- Profiler.cs
- ControlCachePolicy.cs
- StopRoutingHandler.cs
- TextSpan.cs
- listviewsubitemcollectioneditor.cs
- PageContent.cs
- CLSCompliantAttribute.cs
- ExistsInCollection.cs
- MouseDevice.cs
- LicenseContext.cs
- CultureSpecificCharacterBufferRange.cs
- Parameter.cs
- DialogResultConverter.cs
- OleAutBinder.cs
- WebBrowserNavigatedEventHandler.cs
- XPathBuilder.cs
- SiteMap.cs
- DispatchWrapper.cs
- IIS7UserPrincipal.cs
- Switch.cs
- ResourcePermissionBaseEntry.cs
- EntityDataSourceSelectingEventArgs.cs
- ResourceSet.cs
- FontEditor.cs
- ExpressionParser.cs
- DistinctQueryOperator.cs
- TableParagraph.cs
- DataGridViewElement.cs
- Table.cs
- CustomLineCap.cs
- PathGeometry.cs
- ImageClickEventArgs.cs
- HtmlFormAdapter.cs