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
- MouseActionConverter.cs
- UnsafeNativeMethods.cs
- TemplateField.cs
- ListBindingConverter.cs
- RotateTransform.cs
- DetailsViewRow.cs
- CurrentChangedEventManager.cs
- DPTypeDescriptorContext.cs
- ListControlStringCollectionEditor.cs
- TheQuery.cs
- Int32CollectionConverter.cs
- EntityConnectionStringBuilder.cs
- IPipelineRuntime.cs
- ZipFileInfo.cs
- SafeCertificateStore.cs
- XmlAnyElementAttribute.cs
- ScriptReferenceBase.cs
- ListControl.cs
- ResourcesChangeInfo.cs
- RequiredAttributeAttribute.cs
- ITreeGenerator.cs
- ClientSettings.cs
- EmbossBitmapEffect.cs
- ReflectionPermission.cs
- ReceiveSecurityHeaderEntry.cs
- XmlAttributeCache.cs
- CodeAttributeArgument.cs
- HyperlinkAutomationPeer.cs
- SessionIDManager.cs
- HMACSHA384.cs
- MethodRental.cs
- PointKeyFrameCollection.cs
- DeferredElementTreeState.cs
- CompoundFileReference.cs
- ConfigurationSettings.cs
- DataGridViewCellCancelEventArgs.cs
- RenderingBiasValidation.cs
- BamlLocalizationDictionary.cs
- Select.cs
- CqlParser.cs
- TitleStyle.cs
- Translator.cs
- ExcludeFromCodeCoverageAttribute.cs
- RangeValidator.cs
- MSG.cs
- Crypto.cs
- MouseGesture.cs
- HtmlLink.cs
- SuppressIldasmAttribute.cs
- XmlILOptimizerVisitor.cs
- FileVersionInfo.cs
- PackageDigitalSignature.cs
- Span.cs
- PropertyEmitterBase.cs
- Permission.cs
- CheckBoxStandardAdapter.cs
- WindowsListView.cs
- Thread.cs
- DbProviderConfigurationHandler.cs
- CompressionTransform.cs
- HostedHttpContext.cs
- WebBrowserUriTypeConverter.cs
- RequiredAttributeAttribute.cs
- PasswordBoxAutomationPeer.cs
- CookieHandler.cs
- MouseCaptureWithinProperty.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DocumentApplicationDocumentViewer.cs
- NavigationFailedEventArgs.cs
- ContextDataSourceView.cs
- LineGeometry.cs
- AnnouncementService.cs
- nulltextnavigator.cs
- DataContractSerializer.cs
- HMACMD5.cs
- WebPartManagerDesigner.cs
- NullableFloatMinMaxAggregationOperator.cs
- PrintDialogDesigner.cs
- ContainerSelectorGlyph.cs
- BordersPage.cs
- CompModSwitches.cs
- BoundPropertyEntry.cs
- PersonalizationStateInfo.cs
- RulePatternOps.cs
- CookieProtection.cs
- StateInitializationDesigner.cs
- Models.cs
- ResourceDefaultValueAttribute.cs
- Crc32.cs
- WebPartEditorApplyVerb.cs
- ConnectionManagementElement.cs
- IndentedTextWriter.cs
- EntityKeyElement.cs
- TableLayoutPanelCellPosition.cs
- ComplusEndpointConfigContainer.cs
- SQLDateTimeStorage.cs
- PartialClassGenerationTask.cs
- CodeMemberEvent.cs
- SelectionProviderWrapper.cs
- ErrorCodes.cs