You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
60
external/referencesource/System.Web.Extensions/Script/Services/WebServiceParameterData.cs
vendored
Normal file
60
external/referencesource/System.Web.Extensions/Script/Services/WebServiceParameterData.cs
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user