mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
61 lines
1.7 KiB
C#
61 lines
1.7 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="WebServiceParameterData.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|