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
- _ContextAwareResult.cs
- MaterialGroup.cs
- SoapAttributeAttribute.cs
- CompiledQueryCacheEntry.cs
- XmlTextReader.cs
- HttpInputStream.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SqlRowUpdatedEvent.cs
- MobileControlsSectionHandler.cs
- XmlComment.cs
- Tag.cs
- MetadataItem.cs
- StateDesigner.Helpers.cs
- PeerApplication.cs
- ResourceAssociationType.cs
- AnnotationStore.cs
- WebPartCatalogCloseVerb.cs
- StructuredProperty.cs
- GridItem.cs
- EventLogHandle.cs
- SafeCryptContextHandle.cs
- SafeEventHandle.cs
- X509CertificateCollection.cs
- InputReport.cs
- ErrorHandler.cs
- AdvancedBindingEditor.cs
- EventLogTraceListener.cs
- XsdDuration.cs
- ToolStripItemImageRenderEventArgs.cs
- KerberosSecurityTokenParameters.cs
- MD5CryptoServiceProvider.cs
- AutomationElement.cs
- StyleXamlParser.cs
- XmlDictionaryReaderQuotas.cs
- UriParserTemplates.cs
- Size.cs
- Visual3DCollection.cs
- ChildChangedEventArgs.cs
- TypeElement.cs
- FloaterParaClient.cs
- PointCollectionConverter.cs
- BaseContextMenu.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- SerializationInfoEnumerator.cs
- TableDetailsRow.cs
- DocumentGridContextMenu.cs
- ColorEditor.cs
- InputScope.cs
- ProcessHostFactoryHelper.cs
- BufferedGraphics.cs
- PropertyTab.cs
- ComponentEditorForm.cs
- SmiEventSink_Default.cs
- X509Certificate2Collection.cs
- QilInvokeEarlyBound.cs
- PropertyGroupDescription.cs
- EmbeddedObject.cs
- DataServiceHost.cs
- PropertyNames.cs
- ToolStripScrollButton.cs
- WebProxyScriptElement.cs
- dbenumerator.cs
- FormViewInsertedEventArgs.cs
- DecimalSumAggregationOperator.cs
- InheritedPropertyChangedEventArgs.cs
- LogRestartAreaEnumerator.cs
- XmlLinkedNode.cs
- EditingCoordinator.cs
- ExitEventArgs.cs
- remotingproxy.cs
- MulticastNotSupportedException.cs
- OracleException.cs
- WaveHeader.cs
- InternalCache.cs
- HwndHostAutomationPeer.cs
- VirtualizedItemProviderWrapper.cs
- WriteableBitmap.cs
- InputProcessorProfiles.cs
- ParallelTimeline.cs
- EntityModelBuildProvider.cs
- ArraySet.cs
- CellLabel.cs
- DataControlFieldCollection.cs
- ParallelActivityDesigner.cs
- DrawListViewItemEventArgs.cs
- Wizard.cs
- TextTreeNode.cs
- NullableLongAverageAggregationOperator.cs
- BitmapCodecInfo.cs
- CodeEntryPointMethod.cs
- Mappings.cs
- TypeRefElement.cs
- HandledEventArgs.cs
- Group.cs
- WindowsListView.cs
- SQLByte.cs
- UpdateCommand.cs
- ScriptBehaviorDescriptor.cs
- TranslateTransform.cs
- InputMethodStateChangeEventArgs.cs