Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / Script / Services / WebServiceParameterData.cs / 1 / 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
- DataService.cs
- DataGridCommandEventArgs.cs
- FamilyMap.cs
- Tuple.cs
- HistoryEventArgs.cs
- UrlMapping.cs
- SystemTcpStatistics.cs
- ClosableStream.cs
- AutoResetEvent.cs
- DataGridRowHeader.cs
- InkSerializer.cs
- RijndaelCryptoServiceProvider.cs
- SourceFileInfo.cs
- ParamArrayAttribute.cs
- Primitive.cs
- Size3DValueSerializer.cs
- DataTableExtensions.cs
- BufferModeSettings.cs
- StateManagedCollection.cs
- RequiredArgumentAttribute.cs
- TemplatedAdorner.cs
- HwndMouseInputProvider.cs
- BaseParser.cs
- Clipboard.cs
- ChtmlTextBoxAdapter.cs
- followingsibling.cs
- HttpHandlersSection.cs
- Wow64ConfigurationLoader.cs
- AssociationSetEnd.cs
- Model3DGroup.cs
- GridEntryCollection.cs
- SqlBooleanizer.cs
- JoinCqlBlock.cs
- NullableFloatSumAggregationOperator.cs
- ListViewUpdateEventArgs.cs
- HttpListener.cs
- EntityCommandExecutionException.cs
- VoiceChangeEventArgs.cs
- EditorPart.cs
- DBCommand.cs
- Point3DConverter.cs
- ChangesetResponse.cs
- QilChoice.cs
- UnsafeNativeMethods.cs
- GeometryModel3D.cs
- OleDbCommandBuilder.cs
- SqlPersonalizationProvider.cs
- Rect.cs
- XPathNodeInfoAtom.cs
- SQLChars.cs
- Oci.cs
- VSWCFServiceContractGenerator.cs
- ResolveInfo.cs
- Int16Storage.cs
- ScrollEventArgs.cs
- Avt.cs
- TabItem.cs
- FragmentQuery.cs
- Compilation.cs
- SystemIPGlobalProperties.cs
- ReadWriteObjectLock.cs
- ScrollPatternIdentifiers.cs
- WorkflowInstanceExtensionProvider.cs
- RegistryConfigurationProvider.cs
- GuidConverter.cs
- TabOrder.cs
- CodeBinaryOperatorExpression.cs
- NavigationProperty.cs
- EventLogPermissionEntryCollection.cs
- DoubleConverter.cs
- HttpResponseHeader.cs
- XmlUTF8TextWriter.cs
- DataColumnCollection.cs
- CompilerScopeManager.cs
- SspiNegotiationTokenAuthenticatorState.cs
- NativeObjectSecurity.cs
- WebBrowser.cs
- LogAppendAsyncResult.cs
- ColumnHeader.cs
- TransportElement.cs
- COSERVERINFO.cs
- SafeTimerHandle.cs
- VisualTreeHelper.cs
- DocumentReference.cs
- CallSiteBinder.cs
- FlowDecisionLabelFeature.cs
- ExpressionQuoter.cs
- DefaultBinder.cs
- DbProviderFactory.cs
- MediaContextNotificationWindow.cs
- TypeExtensionSerializer.cs
- SqlNotificationRequest.cs
- DependencyPropertyKind.cs
- MemberAssignmentAnalysis.cs
- SafeSerializationManager.cs
- TriggerActionCollection.cs
- streamingZipPartStream.cs
- DoubleConverter.cs
- ELinqQueryState.cs
- HttpPostClientProtocol.cs