parameter order is changed when use web reference!

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi there, see if anyone can help on this : I created a simple function in C#
[WebMethod]
public void FuncA(int intA, out string strB, ref string strC, out string
stringD){}

When I add a web reference , the proxy out ref param in front of our params.

public void FuncA(int intA, ref string strC, out string strB, out
string stringD){}

Any idea ?


.



Relevant Pages

  • Re: c# .net write html to word special characters not writing
    ... WriteToFile(strPath, ref strData, FileMode.OpenOrCreate, ... public static void WriteToFile(string strPath, ref string strData, ... doc.write(new object{TopLinkHtml}); ...
    (microsoft.public.dotnet.languages.csharp)
  • DLL Import method
    ... I have VB code that shows how to import a DLL function. ... ref string anotherstring); ... MethodName, if the function inside of the DLL is also called ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DLL Import method
    ... = VB string that is passed ByRef. ... that's the same as a C# string ... why isn't "ref string s" enough? ... Why does it need MarshalAs if CharSet.Ansi will handle it for me? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: newbie how to call this C function from C#
    ... public static extern int my_function ... ref string input, out string output); ... So by making the parameters ref string and out string, ...
    (microsoft.public.dotnet.framework.interop)
  • How to Marshal wchar**
    ... I have a .Net Com Server being called by an unmanaged c++ program. ... In the .Net Com server I am supposed to free the memory and allocate new ... memory for this string since I have to read the string it points to, ... I have used "ref string" which did not work since it was not allocating new ...
    (microsoft.public.dotnet.framework.interop)