开发者

Power builder OLEObject type equivalent in C# (.Net 4.0)

开发者 https://www.devze.com 2023-03-24 04:43 出处:网络
I am migrating Power builder application into .Net 4.0(c#). I need help regarding开发者_StackOverflow中文版 OLEObject type used in Power builder code. Below are the code example.

I am migrating Power builder application into .Net 4.0(c#). I need help regarding开发者_StackOverflow中文版 OLEObject type used in Power builder code. Below are the code example.

OLEObject test;

test = MyClass.GetContext();

int value = test.get("on")

Please tell me what the equivalent of OLEObject of Power Builder in C#?? Please response ASAP. Thanks in Advance


The C# version 4 dynamic keyword.

If you're stuck on an earlier version then you're better off writing the code in VB.NET. Doing late binding in C# is pretty ugly.

0

精彩评论

暂无评论...
验证码 换一张
取 消