Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Script / Services / WebServiceParameterData.cs / 1305376 / WebServiceParameterData.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Reflection; namespace System.Web.Script.Services { internal class WebServiceParameterData { private ParameterInfo _param; private int _index; // Index of the parameter in the method private string _paramName; private Type _paramType; internal WebServiceParameterData(ParameterInfo param, int index) { _param = param; _index = index; } // This constructor is only used by indigo internal WebServiceParameterData(string paramName, Type paramType, int index) { _paramName = paramName; _paramType = paramType; _index = index; } internal int Index { get { return _index; } } internal ParameterInfo ParameterInfo { get { return _param; } } internal string ParameterName { get { if (_param != null) { return _param.Name; } else { return _paramName; } } } internal Type ParameterType { get { if (_param != null) { return _param.ParameterType; } else { return _paramType; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Reflection; namespace System.Web.Script.Services { internal class WebServiceParameterData { private ParameterInfo _param; private int _index; // Index of the parameter in the method private string _paramName; private Type _paramType; internal WebServiceParameterData(ParameterInfo param, int index) { _param = param; _index = index; } // This constructor is only used by indigo internal WebServiceParameterData(string paramName, Type paramType, int index) { _paramName = paramName; _paramType = paramType; _index = index; } internal int Index { get { return _index; } } internal ParameterInfo ParameterInfo { get { return _param; } } internal string ParameterName { get { if (_param != null) { return _param.Name; } else { return _paramName; } } } internal Type ParameterType { get { if (_param != null) { return _param.ParameterType; } else { return _paramType; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLDateTime.cs
- Span.cs
- StateRuntime.cs
- BitmapCache.cs
- FormsIdentity.cs
- BookmarkList.cs
- WebPartConnectionsCancelEventArgs.cs
- TextComposition.cs
- FlowLayoutPanel.cs
- MDIControlStrip.cs
- RequestSecurityTokenForGetBrowserToken.cs
- ActionMismatchAddressingException.cs
- SchemaComplexType.cs
- DesignerLoader.cs
- ClientScriptManagerWrapper.cs
- ProviderConnectionPointCollection.cs
- Encoder.cs
- Action.cs
- StorageSetMapping.cs
- StateDesigner.CommentLayoutGlyph.cs
- WCFModelStrings.Designer.cs
- RuleProcessor.cs
- DataBoundControl.cs
- InfiniteTimeSpanConverter.cs
- ValueChangedEventManager.cs
- ShaperBuffers.cs
- PermissionAttributes.cs
- TextRunCache.cs
- ServerIdentity.cs
- SelectionProcessor.cs
- SemanticResolver.cs
- Range.cs
- XmlWriter.cs
- SerializableAuthorizationContext.cs
- WebPartDisplayModeEventArgs.cs
- IdentifierCollection.cs
- DescendentsWalker.cs
- DataTablePropertyDescriptor.cs
- OdbcStatementHandle.cs
- TextTreeTextElementNode.cs
- DesignerContextDescriptor.cs
- MenuScrollingVisibilityConverter.cs
- PageContent.cs
- MetadataWorkspace.cs
- HtmlEmptyTagControlBuilder.cs
- MailMessage.cs
- ModulesEntry.cs
- RoutedEventValueSerializer.cs
- DesignerAttribute.cs
- XmlDownloadManager.cs
- MultiplexingFormatMapping.cs
- AccessDataSourceView.cs
- XomlCompilerHelpers.cs
- CodeVariableDeclarationStatement.cs
- documentation.cs
- LinearKeyFrames.cs
- CacheHelper.cs
- StateWorkerRequest.cs
- MulticastDelegate.cs
- AnnotationStore.cs
- HttpConfigurationSystem.cs
- RelatedCurrencyManager.cs
- SQLDecimal.cs
- SoapMessage.cs
- PriorityQueue.cs
- ConnectionManagementSection.cs
- GraphicsPathIterator.cs
- IODescriptionAttribute.cs
- SourceElementsCollection.cs
- MdImport.cs
- MonitoringDescriptionAttribute.cs
- IntSecurity.cs
- XmlnsDefinitionAttribute.cs
- BinaryNode.cs
- SoapSchemaImporter.cs
- MorphHelper.cs
- ToolBarOverflowPanel.cs
- PartialArray.cs
- PersonalizationStateInfoCollection.cs
- PermissionAttributes.cs
- ValidatorCompatibilityHelper.cs
- PasswordRecovery.cs
- DataServiceHostWrapper.cs
- JsonFormatMapping.cs
- OleDbErrorCollection.cs
- DetailsViewDeleteEventArgs.cs
- Vector3DAnimationUsingKeyFrames.cs
- XpsFilter.cs
- ThreadStaticAttribute.cs
- CultureInfoConverter.cs
- UTF7Encoding.cs
- FileUpload.cs
- PropertyFilterAttribute.cs
- InputBinding.cs
- MatrixTransform3D.cs
- PreservationFileReader.cs
- NullableLongSumAggregationOperator.cs
- Style.cs
- ReadOnlyCollection.cs
- BuildProvider.cs