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
- MemberRelationshipService.cs
- sqlnorm.cs
- EnvelopedPkcs7.cs
- EntityKey.cs
- FontFamilyIdentifier.cs
- GroupLabel.cs
- DropShadowEffect.cs
- SqlLiftIndependentRowExpressions.cs
- HitTestParameters.cs
- XmlSchemaValidator.cs
- TextEditorLists.cs
- AddToCollection.cs
- LogicalExpressionEditor.cs
- WorkflowOperationContext.cs
- StylusPlugInCollection.cs
- Label.cs
- ComplexTypeEmitter.cs
- SystemColors.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlDocumentType.cs
- InfoCardService.cs
- HtmlInputFile.cs
- EditorPartChrome.cs
- CodeValidator.cs
- Delegate.cs
- FrugalMap.cs
- WMIGenerator.cs
- DesignerActionVerbList.cs
- EntityViewContainer.cs
- Directory.cs
- RegexMatch.cs
- WorkflowMarkupSerializer.cs
- TimerTable.cs
- PerformanceCounterPermissionEntry.cs
- MethodRental.cs
- MetafileHeaderEmf.cs
- MatrixAnimationBase.cs
- SQLStringStorage.cs
- TextProperties.cs
- ErrorStyle.cs
- PageTheme.cs
- MailAddressCollection.cs
- StoreItemCollection.Loader.cs
- DesignerImageAdapter.cs
- BamlTreeNode.cs
- XmlQueryOutput.cs
- ToolStripSettings.cs
- DataShape.cs
- FigureParagraph.cs
- CryptoApi.cs
- SqlMultiplexer.cs
- SelectionItemPattern.cs
- InsufficientMemoryException.cs
- XmlReturnWriter.cs
- DataGridRowEventArgs.cs
- ControlCollection.cs
- BitmapEffectDrawing.cs
- Visual.cs
- SiteMapPath.cs
- Currency.cs
- XmlSchemaDocumentation.cs
- PipeStream.cs
- HelpProvider.cs
- RelationshipConstraintValidator.cs
- DataGridViewImageColumn.cs
- DataPager.cs
- counter.cs
- ConcatQueryOperator.cs
- StorageFunctionMapping.cs
- DelegateBodyWriter.cs
- GPStream.cs
- RoleService.cs
- MetadataPropertyvalue.cs
- TextParaClient.cs
- CodeDirectoryCompiler.cs
- MessageRpc.cs
- BadImageFormatException.cs
- OdbcErrorCollection.cs
- TcpProcessProtocolHandler.cs
- XmlElementList.cs
- SmiRequestExecutor.cs
- HMACSHA512.cs
- RoutedPropertyChangedEventArgs.cs
- DBSqlParserColumnCollection.cs
- WindowsButton.cs
- ListInitExpression.cs
- PerformanceCounter.cs
- MediaContextNotificationWindow.cs
- DataGridViewSelectedCellCollection.cs
- DataQuery.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- RSACryptoServiceProvider.cs
- HtmlInputRadioButton.cs
- PreservationFileWriter.cs
- BitmapImage.cs
- PageThemeParser.cs
- TextTreeInsertElementUndoUnit.cs
- UpdateCommand.cs
- FormatterServices.cs
- UserPreferenceChangingEventArgs.cs