c# - WCF method parameter order -


in wcf web service, have following interface:

[servicecontract] public interface itestservice {     [operationcontract]     void testmethod(out int param1, out int param2); } 

when add service reference in client side, generated client method not match correctly original signature, maps 1 of out parameter method return. have call way:

using (var client = new testserviceclient()) {     int param2;     int param1 = client.testmethod(out param2); } 

is there way can "force" proxy generated being faithful original method signatures?

technically being faithful. if dig reference.cs, see when proxy calls service, call same. however, proxy or "wrapper" calls service decided "wrap" service call differently.

the way make proxy keep same signature write yourself. same issue people have when reflecting dll. sure can reflect , "source code", reflected code different original source, although functionality same.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -