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
- DocumentViewerConstants.cs
- OutputScopeManager.cs
- ByteKeyFrameCollection.cs
- EnumType.cs
- EntityParameter.cs
- DesignerForm.cs
- EdmSchemaAttribute.cs
- ValidationErrorEventArgs.cs
- ListViewDataItem.cs
- CodeDomConfigurationHandler.cs
- UnitySerializationHolder.cs
- SessionParameter.cs
- DataServiceOperationContext.cs
- AlphabeticalEnumConverter.cs
- WebPartCatalogCloseVerb.cs
- ChameleonKey.cs
- SectionRecord.cs
- Vector3DCollectionConverter.cs
- SerialStream.cs
- BrowserCapabilitiesFactory.cs
- ColorConvertedBitmap.cs
- RawStylusInput.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- XmlIterators.cs
- Bezier.cs
- WorkflowInstance.cs
- ConnectorEditor.cs
- GrammarBuilderBase.cs
- ProviderConnectionPoint.cs
- DataGridViewRowPostPaintEventArgs.cs
- AdapterUtil.cs
- SynchronizationScope.cs
- MaskInputRejectedEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- AffineTransform3D.cs
- CorrelationKeyCalculator.cs
- TimerElapsedEvenArgs.cs
- ExpressionHelper.cs
- ListControlActionList.cs
- PointConverter.cs
- ServicesUtilities.cs
- ExpressionParser.cs
- BridgeDataRecord.cs
- SafeMILHandle.cs
- FileDialogCustomPlacesCollection.cs
- WindowAutomationPeer.cs
- XmlnsPrefixAttribute.cs
- BulletedList.cs
- TemplateControlParser.cs
- MembershipPasswordException.cs
- SqlDataSourceConfigureFilterForm.cs
- DataGridGeneralPage.cs
- CodeSnippetExpression.cs
- PropertyEmitterBase.cs
- Label.cs
- ReachSerializableProperties.cs
- ObjectStateManagerMetadata.cs
- GroupStyle.cs
- messageonlyhwndwrapper.cs
- PropertyDescriptorCollection.cs
- _ListenerAsyncResult.cs
- WeakReadOnlyCollection.cs
- ProcessInfo.cs
- DecimalAverageAggregationOperator.cs
- MarshalByRefObject.cs
- TiffBitmapDecoder.cs
- SHA256.cs
- ProjectionCamera.cs
- SatelliteContractVersionAttribute.cs
- CqlParser.cs
- GridViewRowEventArgs.cs
- CapabilitiesRule.cs
- PolicyStatement.cs
- OdbcConnectionPoolProviderInfo.cs
- DataObject.cs
- Deflater.cs
- EmbossBitmapEffect.cs
- ArgumentOutOfRangeException.cs
- Addressing.cs
- AppSettings.cs
- StylusCollection.cs
- cryptoapiTransform.cs
- DependentTransaction.cs
- CFStream.cs
- PeerApplicationLaunchInfo.cs
- ActiveXMessageFormatter.cs
- dtdvalidator.cs
- PageAdapter.cs
- WindowsGraphics2.cs
- XPathParser.cs
- _ShellExpression.cs
- ApplicationInfo.cs
- WmlLiteralTextAdapter.cs
- NewArray.cs
- CapabilitiesUse.cs
- ComboBox.cs
- CodeParameterDeclarationExpressionCollection.cs
- SecurityHelper.cs
- TabControl.cs
- TableLayoutStyleCollection.cs