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
- UInt64Storage.cs
- DeclarativeCatalogPart.cs
- ActiveXHelper.cs
- XmlSchemaSubstitutionGroup.cs
- WorkflowQueuingService.cs
- FixedTextBuilder.cs
- ProtocolInformationWriter.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- DoubleUtil.cs
- TextContainerChangeEventArgs.cs
- TextMarkerSource.cs
- DispatcherProcessingDisabled.cs
- OdbcEnvironment.cs
- nulltextnavigator.cs
- InternalSendMessage.cs
- ExtractedStateEntry.cs
- RSAProtectedConfigurationProvider.cs
- EntityViewGenerator.cs
- SafePEFileHandle.cs
- ValidatorCompatibilityHelper.cs
- FragmentNavigationEventArgs.cs
- Thumb.cs
- CodeVariableDeclarationStatement.cs
- ArraySet.cs
- ListItemViewControl.cs
- SoapServerMessage.cs
- DataListCommandEventArgs.cs
- FixedSOMTableRow.cs
- StringTraceRecord.cs
- PtsPage.cs
- CodeVariableReferenceExpression.cs
- SingleAnimationBase.cs
- RegexNode.cs
- Dispatcher.cs
- MSHTMLHost.cs
- _LocalDataStore.cs
- UnsafeNativeMethods.cs
- XmlValidatingReader.cs
- TextElement.cs
- X509Utils.cs
- OneOfConst.cs
- XXXInfos.cs
- ToolStripStatusLabel.cs
- CallSite.cs
- DebugHandleTracker.cs
- X509ScopedServiceCertificateElement.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DesignerMetadata.cs
- CriticalHandle.cs
- TextClipboardData.cs
- SingleConverter.cs
- IChannel.cs
- MediaCommands.cs
- ToolBarDesigner.cs
- IUnknownConstantAttribute.cs
- SqlFunctionAttribute.cs
- DataReaderContainer.cs
- SqlCacheDependencySection.cs
- DbTransaction.cs
- SeekableReadStream.cs
- CompletedAsyncResult.cs
- DotAtomReader.cs
- HtmlSelectionListAdapter.cs
- MachineKeySection.cs
- WinCategoryAttribute.cs
- RegularExpressionValidator.cs
- ProxyWebPart.cs
- TextTreePropertyUndoUnit.cs
- EventManager.cs
- _ConnectionGroup.cs
- LinkTarget.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataGridColumnCollection.cs
- WindowsComboBox.cs
- ServerValidateEventArgs.cs
- XmlWriter.cs
- Dynamic.cs
- DataGridCommandEventArgs.cs
- ProtocolsSection.cs
- TextClipboardData.cs
- AppDomainProtocolHandler.cs
- MemberHolder.cs
- ImageBrush.cs
- CursorConverter.cs
- EventLogEntry.cs
- DataBindingList.cs
- PropertyItem.cs
- SelectedGridItemChangedEvent.cs
- DataObjectSettingDataEventArgs.cs
- ConfigXmlAttribute.cs
- DependencyPropertyAttribute.cs
- SizeValueSerializer.cs
- PolyLineSegment.cs
- CatalogPartCollection.cs
- X509SecurityTokenParameters.cs
- CompoundFileIOPermission.cs
- EventRoute.cs
- VisualStyleTypesAndProperties.cs
- EpmContentDeSerializerBase.cs
- AxisAngleRotation3D.cs