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
- ToolStripDesigner.cs
- EntityExpressionVisitor.cs
- ListViewItem.cs
- BuildResultCache.cs
- IncrementalCompileAnalyzer.cs
- UnsafeNativeMethods.cs
- TextMarkerSource.cs
- WsdlImporterElementCollection.cs
- _SslSessionsCache.cs
- XmlDocumentType.cs
- XmlAttributeAttribute.cs
- FilterQuery.cs
- CopyAction.cs
- DashStyle.cs
- ThicknessAnimationUsingKeyFrames.cs
- DataObject.cs
- TextSchema.cs
- _ConnectStream.cs
- GroupBoxRenderer.cs
- SecUtil.cs
- AutomationPropertyInfo.cs
- EqualityComparer.cs
- MatrixStack.cs
- XmlTypeMapping.cs
- ToolboxBitmapAttribute.cs
- NameValueCollection.cs
- PersistencePipeline.cs
- GeometryGroup.cs
- TextBlockAutomationPeer.cs
- GeometryCollection.cs
- LinqDataSourceEditData.cs
- HashCryptoHandle.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SafeNativeMethodsMilCoreApi.cs
- SqlCaseSimplifier.cs
- RichTextBox.cs
- BaseDataBoundControl.cs
- ControlEvent.cs
- WindowsFormsSynchronizationContext.cs
- ToolStripItemCollection.cs
- XmlTypeAttribute.cs
- ObjectSet.cs
- DbProviderServices.cs
- SplayTreeNode.cs
- PageAdapter.cs
- BuiltInExpr.cs
- VirtualizingStackPanel.cs
- DataGridHeaderBorder.cs
- ProfessionalColorTable.cs
- SelectionBorderGlyph.cs
- OpenFileDialog.cs
- ScaleTransform3D.cs
- SystemKeyConverter.cs
- Timer.cs
- HeaderLabel.cs
- ListView.cs
- AlternationConverter.cs
- DockEditor.cs
- UIElementIsland.cs
- FirstMatchCodeGroup.cs
- TextAdaptor.cs
- StringWriter.cs
- CombinedGeometry.cs
- DataGridViewDataErrorEventArgs.cs
- FixedDocumentPaginator.cs
- WindowsListViewItemStartMenu.cs
- Bitmap.cs
- CodeComment.cs
- MsmqIntegrationBindingCollectionElement.cs
- Pen.cs
- CLSCompliantAttribute.cs
- DataGridColumnCollection.cs
- ClientUtils.cs
- PermissionSetEnumerator.cs
- XslAstAnalyzer.cs
- OracleParameter.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- AssemblyInfo.cs
- FunctionNode.cs
- XmlUrlResolver.cs
- ContextCorrelationInitializer.cs
- VerticalAlignConverter.cs
- ObjectIDGenerator.cs
- MethodToken.cs
- ListItemCollection.cs
- DesignerActionUIService.cs
- FaultReason.cs
- OptimizerPatterns.cs
- DataControlFieldHeaderCell.cs
- CodeAssignStatement.cs
- base64Transforms.cs
- DbMetaDataColumnNames.cs
- ActivityExecutionWorkItem.cs
- RemotingService.cs
- GeneralTransform3DCollection.cs
- Application.cs
- EdmEntityTypeAttribute.cs
- Trigger.cs
- DataContractSerializerSection.cs
- ExcCanonicalXml.cs