DllSquareTest函数是对数组x的每一个元素求平方,它是在vc++.net下编写的,如下:
==============================================================================
int DllSquareTest(int x[],int n)
{
int i;

for(i=0;i<n;i++)
{
 return x[i]*x[i];
     
}
}

////在.asmx.cs中调用SqrtDllTest.dll
[DllImport("SqrtDllTest.dll")]
public static extern void DllSquareTest(int[] x,int n);
//抛物线函数接口
[WebMethod(Description="这是调用抛物线函数的web服务")]

public void SquareTest(int[] x,int n)//这里怎么编写啊?
{
DllSquareTest(x,n);
}
===========================================================================
我想让webmethod中的函数SquareTest返回值存储在一个数组中,请高手指教!