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
- ReverseInheritProperty.cs
- TypeUnloadedException.cs
- EdgeProfileValidation.cs
- SingleAnimationUsingKeyFrames.cs
- FrameDimension.cs
- XslAst.cs
- HttpResponseHeader.cs
- DependencyPropertyValueSerializer.cs
- BoundField.cs
- ListViewItem.cs
- RotationValidation.cs
- DSASignatureDeformatter.cs
- DispatchChannelSink.cs
- basevalidator.cs
- DbModificationCommandTree.cs
- TreeIterator.cs
- NumberSubstitution.cs
- Margins.cs
- LinearKeyFrames.cs
- XmlCharCheckingReader.cs
- BrowserDefinition.cs
- TransformerTypeCollection.cs
- LayoutManager.cs
- InternalsVisibleToAttribute.cs
- RIPEMD160Managed.cs
- ServicePointManagerElement.cs
- AutoScrollHelper.cs
- TdsParser.cs
- TransactionValidationBehavior.cs
- complextypematerializer.cs
- Perspective.cs
- ContextMenuStrip.cs
- TextStore.cs
- NativeMethods.cs
- XmlnsDictionary.cs
- PolicyChain.cs
- TextInfo.cs
- DataSourceCacheDurationConverter.cs
- DataGridColumnCollection.cs
- TextDecorationCollectionConverter.cs
- RootProfilePropertySettingsCollection.cs
- SafeHandles.cs
- IList.cs
- VsPropertyGrid.cs
- ServiceBuildProvider.cs
- FileDialog_Vista.cs
- HashCodeCombiner.cs
- GeometryDrawing.cs
- CollectionBuilder.cs
- MouseGestureConverter.cs
- DataGridCell.cs
- PrePostDescendentsWalker.cs
- CodeConditionStatement.cs
- embossbitmapeffect.cs
- MailWriter.cs
- hresults.cs
- ClusterSafeNativeMethods.cs
- BitmapEffectDrawingContextWalker.cs
- Win32Native.cs
- SafeNativeMethods.cs
- SystemBrushes.cs
- FrameworkContentElement.cs
- TitleStyle.cs
- ApplicationTrust.cs
- WithStatement.cs
- SynchronizationScope.cs
- TransactionChannelFaultConverter.cs
- SqlConnectionStringBuilder.cs
- Fault.cs
- ZipIOCentralDirectoryBlock.cs
- Int64AnimationBase.cs
- Calendar.cs
- CorrelationQueryBehavior.cs
- UrlMappingsSection.cs
- IisTraceWebEventProvider.cs
- CallContext.cs
- XmlSchemaObject.cs
- ElementNotAvailableException.cs
- DetailsViewPagerRow.cs
- TreeNodeEventArgs.cs
- ProvidePropertyAttribute.cs
- DateTimeFormatInfo.cs
- HttpApplication.cs
- TriggerAction.cs
- SqlInternalConnection.cs
- Vector3D.cs
- SqlConnectionStringBuilder.cs
- ParserContext.cs
- WebPartTransformerCollection.cs
- XmlReaderSettings.cs
- ParameterCollection.cs
- ContentWrapperAttribute.cs
- CssClassPropertyAttribute.cs
- ToolStripLocationCancelEventArgs.cs
- TableMethodGenerator.cs
- Aes.cs
- RuntimeCompatibilityAttribute.cs
- SocketPermission.cs
- PagesSection.cs
- DataSourceCollectionBase.cs