D
DAXU
Hi,
I am new to web service and I have a class called Pair like this:
[Serializable]
public class Pair<A, B>
{
public Pair()
{
First = default(A);
Second = default(B);
}
......
}
I created a web method to return a Pair class (e.g. Pair<int,
DataSet>), and then have a web page to consume the returned Pair
class. However, from metadata the return of the web method become:
public class PairOfInt32DataSet
{
public PairOfInt32DataSet();
public int First { get; set; }
public DataSet Second { get; set; }
}
Can someone tell me why?
I am new to web service and I have a class called Pair like this:
[Serializable]
public class Pair<A, B>
{
public Pair()
{
First = default(A);
Second = default(B);
}
......
}
I created a web method to return a Pair class (e.g. Pair<int,
DataSet>), and then have a web page to consume the returned Pair
class. However, from metadata the return of the web method become:
public class PairOfInt32DataSet
{
public PairOfInt32DataSet();
public int First { get; set; }
public DataSet Second { get; set; }
}
Can someone tell me why?