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
- SecurityKeyUsage.cs
- ActivityCodeGenerator.cs
- MediaScriptCommandRoutedEventArgs.cs
- ObjectReaderCompiler.cs
- ServerValidateEventArgs.cs
- DataGridViewColumnEventArgs.cs
- CmsUtils.cs
- WebErrorHandler.cs
- FileLogRecord.cs
- odbcmetadatacolumnnames.cs
- SetterBase.cs
- SearchForVirtualItemEventArgs.cs
- BreakRecordTable.cs
- OleDbWrapper.cs
- CustomTypeDescriptor.cs
- CommandDevice.cs
- ToolStripContentPanelDesigner.cs
- ObjectListFieldsPage.cs
- XmlValidatingReader.cs
- TableLayoutPanelDesigner.cs
- CultureInfo.cs
- MediaContextNotificationWindow.cs
- ModifierKeysValueSerializer.cs
- MinimizableAttributeTypeConverter.cs
- DbBuffer.cs
- XamlSerializerUtil.cs
- TableParagraph.cs
- RequiredAttributeAttribute.cs
- AudioFileOut.cs
- SliderAutomationPeer.cs
- JavaScriptObjectDeserializer.cs
- PrePrepareMethodAttribute.cs
- XPathDescendantIterator.cs
- LocatorPart.cs
- HealthMonitoringSection.cs
- TransformerConfigurationWizardBase.cs
- ZoneIdentityPermission.cs
- HelpProvider.cs
- SettingsPropertyIsReadOnlyException.cs
- AdditionalEntityFunctions.cs
- HyperLinkColumn.cs
- HyperlinkAutomationPeer.cs
- TextServicesProperty.cs
- CancellationTokenRegistration.cs
- WebServiceMethodData.cs
- Point4D.cs
- SelectedDatesCollection.cs
- UnmanagedHandle.cs
- SafeThreadHandle.cs
- ProgressBar.cs
- UserUseLicenseDictionaryLoader.cs
- HtmlMeta.cs
- PhysicalAddress.cs
- QueryOptionExpression.cs
- Paragraph.cs
- SessionEndingCancelEventArgs.cs
- DbProviderFactories.cs
- XmlNotation.cs
- InvokePatternIdentifiers.cs
- Triangle.cs
- MailDefinitionBodyFileNameEditor.cs
- DataColumnMapping.cs
- HtmlTableRowCollection.cs
- Label.cs
- BamlLocalizationDictionary.cs
- CompositeFontFamily.cs
- IntSecurity.cs
- ConfigurationStrings.cs
- ConsoleKeyInfo.cs
- TraceListeners.cs
- PartialCachingAttribute.cs
- HTTPNotFoundHandler.cs
- SBCSCodePageEncoding.cs
- DialogWindow.cs
- SchemaTableOptionalColumn.cs
- TTSEvent.cs
- filewebrequest.cs
- OleDbConnectionInternal.cs
- XPathDocumentBuilder.cs
- RbTree.cs
- PeerNeighborManager.cs
- SqlProcedureAttribute.cs
- HTMLTextWriter.cs
- CodeDomComponentSerializationService.cs
- columnmapfactory.cs
- FullTrustAssembliesSection.cs
- HotSpot.cs
- CustomAttributeBuilder.cs
- SEHException.cs
- IDReferencePropertyAttribute.cs
- FocusChangedEventArgs.cs
- EventLogger.cs
- RecognitionResult.cs
- tabpagecollectioneditor.cs
- ManagementException.cs
- ArraySubsetEnumerator.cs
- BuildManagerHost.cs
- RoutedEventArgs.cs
- JapaneseLunisolarCalendar.cs
- Help.cs