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
- UndirectedGraph.cs
- basenumberconverter.cs
- DataGridDesigner.cs
- TextOnlyOutput.cs
- SelectionItemPattern.cs
- MorphHelpers.cs
- ImageKeyConverter.cs
- DataListItemEventArgs.cs
- XamlVector3DCollectionSerializer.cs
- BlockCollection.cs
- Membership.cs
- ObservableCollectionDefaultValueFactory.cs
- EdmProperty.cs
- AccessDataSourceWizardForm.cs
- ResetableIterator.cs
- RelationshipType.cs
- SystemThemeKey.cs
- UInt16.cs
- OleDbRowUpdatedEvent.cs
- TreeNodeStyleCollection.cs
- StringCollection.cs
- ClosableStream.cs
- TemplateModeChangedEventArgs.cs
- StrokeNodeOperations.cs
- DuplexSecurityProtocolFactory.cs
- BadImageFormatException.cs
- TargetControlTypeAttribute.cs
- AttachedPropertiesService.cs
- NavigationPropertyAccessor.cs
- ErrorFormatter.cs
- Converter.cs
- DebugView.cs
- ObjectAnimationUsingKeyFrames.cs
- EncryptedPackageFilter.cs
- DayRenderEvent.cs
- QueryExpression.cs
- ComponentChangingEvent.cs
- XmlKeywords.cs
- Rectangle.cs
- Rfc2898DeriveBytes.cs
- Bidi.cs
- ConfigXmlWhitespace.cs
- WeakEventManager.cs
- XPathDocumentIterator.cs
- GridToolTip.cs
- SafeFileMappingHandle.cs
- DesignerLabelAdapter.cs
- FixedHighlight.cs
- CodeTypeParameterCollection.cs
- _NetRes.cs
- RtType.cs
- CommonDialog.cs
- IPipelineRuntime.cs
- OlePropertyStructs.cs
- Grant.cs
- XPathDocument.cs
- AdPostCacheSubstitution.cs
- StreamUpdate.cs
- IPGlobalProperties.cs
- Touch.cs
- UnSafeCharBuffer.cs
- PropertyNames.cs
- ScaleTransform.cs
- ApplicationSecurityManager.cs
- PrinterUnitConvert.cs
- ConfigurationManager.cs
- GenericAuthenticationEventArgs.cs
- RegexCode.cs
- CqlLexer.cs
- RectAnimation.cs
- MinMaxParagraphWidth.cs
- ObjectListCommandEventArgs.cs
- ScriptResourceDefinition.cs
- NamedPipeTransportManager.cs
- BasicCellRelation.cs
- XmlMemberMapping.cs
- CodeBinaryOperatorExpression.cs
- RoutedEvent.cs
- DrawListViewSubItemEventArgs.cs
- Clause.cs
- SqlProviderManifest.cs
- DataGridViewCellFormattingEventArgs.cs
- sqlmetadatafactory.cs
- XPathException.cs
- TypeBrowserDialog.cs
- SystemKeyConverter.cs
- ResourceBinder.cs
- SqlBulkCopyColumnMappingCollection.cs
- FillRuleValidation.cs
- TimeManager.cs
- ConfigurationSchemaErrors.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StringDictionaryEditor.cs
- NamespaceMapping.cs
- HatchBrush.cs
- XmlSchemaAttributeGroup.cs
- ThreadStaticAttribute.cs
- SchemaTableColumn.cs
- WebScriptEnablingBehavior.cs
- SafeReadContext.cs