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
- FaultCallbackWrapper.cs
- HttpSysSettings.cs
- TypeDependencyAttribute.cs
- unsafenativemethodsother.cs
- FrameworkElementFactory.cs
- ValueHandle.cs
- wgx_exports.cs
- WmfPlaceableFileHeader.cs
- ProviderSettingsCollection.cs
- GeometryDrawing.cs
- LabelEditEvent.cs
- InkPresenter.cs
- InProcStateClientManager.cs
- PropertyTabChangedEvent.cs
- Int32.cs
- MarkupExtensionSerializer.cs
- StrokeCollectionConverter.cs
- OutputCacheModule.cs
- InputBuffer.cs
- WorkflowRuntimeSection.cs
- EntryIndex.cs
- LineInfo.cs
- BamlLocalizer.cs
- PolicyException.cs
- DbConnectionPoolGroup.cs
- DataKeyArray.cs
- ReadOnlyCollection.cs
- SerializationSectionGroup.cs
- Tablet.cs
- FastPropertyAccessor.cs
- WorkflowInlining.cs
- Quaternion.cs
- Module.cs
- ProfileBuildProvider.cs
- DataProtection.cs
- ObjectListComponentEditor.cs
- EventLogPermissionAttribute.cs
- ModelItem.cs
- Visitor.cs
- XsdDuration.cs
- SqlUnionizer.cs
- ListItemCollection.cs
- ClientSettingsProvider.cs
- ProjectionPruner.cs
- HttpAsyncResult.cs
- RegistrationProxy.cs
- ThemeDirectoryCompiler.cs
- VisualStyleInformation.cs
- WebHostedComPlusServiceHost.cs
- ResourceContainer.cs
- HasCopySemanticsAttribute.cs
- DrawingGroup.cs
- SimpleFieldTemplateUserControl.cs
- Point3DIndependentAnimationStorage.cs
- XmlValidatingReaderImpl.cs
- FileUtil.cs
- RemoteWebConfigurationHostStream.cs
- RectangleHotSpot.cs
- MonthCalendar.cs
- XmlParserContext.cs
- PlaceHolder.cs
- DataTemplateSelector.cs
- DataException.cs
- KeysConverter.cs
- CheckBoxFlatAdapter.cs
- OracleParameter.cs
- UpdateManifestForBrowserApplication.cs
- ImageField.cs
- BinaryObjectReader.cs
- TreeViewEvent.cs
- DelegateBodyWriter.cs
- ConfigurationLocationCollection.cs
- TableStyle.cs
- EventRouteFactory.cs
- CachedBitmap.cs
- ErrorProvider.cs
- XsltContext.cs
- LineProperties.cs
- SystemDiagnosticsSection.cs
- TextTreeNode.cs
- ColumnHeader.cs
- DataViewManager.cs
- LiteralControl.cs
- XmlSchemaAppInfo.cs
- SqlInfoMessageEvent.cs
- SizeConverter.cs
- ValidationErrorInfo.cs
- CollectionViewGroup.cs
- TextWriter.cs
- Int64Animation.cs
- ToolTipAutomationPeer.cs
- DataGridViewRowsAddedEventArgs.cs
- HtmlTitle.cs
- CodeDelegateCreateExpression.cs
- URI.cs
- DropTarget.cs
- ManifestResourceInfo.cs
- PeerNameRegistration.cs
- ObjectDataSourceView.cs
- ForceCopyBuildProvider.cs