hi ,
i am having [in,out,size_is(Size)] byte compress_page[*] parameter in my idl file. now we are migrating to wcf.
can you please tell me know how we convert into C#.
for ex:
see this function in IDL file
long RMTReadMultiPages( [in] File fh,
[in, string] char prj[],
[in] long fileno,
[in] long extno,
[in] long pageStart,
[in,out] long *numPages,
[in] long transferSize,
[out] short *failCode,
[in,out,size_is(Size)] byte compress_page[*]
);
i have to write this function in C#.
I am trying to host my Wcf service with Entlib 5.0 Validation. When servie operation contracts go for validation they get crash. Whiel investigating, I found that ref keyword in Wcf service's operation giving this problem. E.g.:
Operation contract in service is like:
public void GetData(int ID, string name, ref string location) {};
Now, while validating string location, it gets crash and if I remove ref keyword it works fine.
Though, in EntLib version 4.0 there are no such issues.
i tried replacing "ref" with "out" the issue was solved..
that ref replacing with out means [in, out] replaced with out.. i am getting some junk values in "compress_page", i am suspecting that this because of When it acts as an input it taking junk values.
Thanks f
or advance for your coperation