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
- MemberRelationshipService.cs
- DataGridViewCellConverter.cs
- UrlPath.cs
- HttpContextServiceHost.cs
- Image.cs
- ValueUnavailableException.cs
- PingOptions.cs
- UnsettableComboBox.cs
- OracleColumn.cs
- TransactionOptions.cs
- BounceEase.cs
- BinaryKeyIdentifierClause.cs
- MaskedTextBoxTextEditor.cs
- Cell.cs
- StorageConditionPropertyMapping.cs
- TypeElement.cs
- OracleMonthSpan.cs
- DesignerSerializationOptionsAttribute.cs
- MailMessage.cs
- Composition.cs
- Ticks.cs
- StringComparer.cs
- NotifyIcon.cs
- MailSettingsSection.cs
- ResourceAttributes.cs
- EdmPropertyAttribute.cs
- BitmapEffectvisualstate.cs
- OledbConnectionStringbuilder.cs
- ResourceSetExpression.cs
- VariableExpressionConverter.cs
- InternalBase.cs
- HelpKeywordAttribute.cs
- CommonProperties.cs
- FrameworkRichTextComposition.cs
- ElementMarkupObject.cs
- XmlDesignerDataSourceView.cs
- SpotLight.cs
- ExtensionDataReader.cs
- SocketStream.cs
- XmlEnumAttribute.cs
- PeekCompletedEventArgs.cs
- autovalidator.cs
- SystemIPGlobalStatistics.cs
- StreamUpdate.cs
- ItemMap.cs
- BinaryWriter.cs
- AssemblyBuilderData.cs
- RowToParametersTransformer.cs
- ExternalFile.cs
- DataGridTablesFactory.cs
- HScrollBar.cs
- DetailsViewUpdateEventArgs.cs
- InvalidCastException.cs
- CommandTreeTypeHelper.cs
- WindowsScroll.cs
- SendingRequestEventArgs.cs
- Verify.cs
- ParsedAttributeCollection.cs
- WebPartConnectVerb.cs
- XamlBuildTaskServices.cs
- VectorCollectionValueSerializer.cs
- FacetChecker.cs
- DeclaredTypeElement.cs
- MembershipUser.cs
- RegexTree.cs
- SamlAuthenticationStatement.cs
- MutableAssemblyCacheEntry.cs
- ReachFixedPageSerializer.cs
- SqlRecordBuffer.cs
- ViewKeyConstraint.cs
- PenThreadWorker.cs
- AnnotationComponentChooser.cs
- Span.cs
- QuaternionAnimation.cs
- HostVisual.cs
- LogConverter.cs
- Span.cs
- ToolStripLocationCancelEventArgs.cs
- FlowDecisionDesigner.xaml.cs
- XmlNamespaceMapping.cs
- GACMembershipCondition.cs
- KeyedHashAlgorithm.cs
- ScrollChrome.cs
- TextParagraph.cs
- SpinLock.cs
- Win32Exception.cs
- PeerOutputChannel.cs
- SystemColors.cs
- CheckableControlBaseAdapter.cs
- ChtmlImageAdapter.cs
- EditorPart.cs
- Grid.cs
- EnumConverter.cs
- ValidationHelper.cs
- GeometryHitTestResult.cs
- RangeValueProviderWrapper.cs
- CheckBoxBaseAdapter.cs
- ScrollBar.cs
- EntityCodeGenerator.cs
- EntityCollection.cs