I am trying to take a WinTable object and pass it into my own object type as such:
CustomControl control = (CustomControl) this.UIMap.UIMainWindow.UICustomControl.NativeElement;
Then I want to process the resulting CustomControl , as in the source code for my program, for example control.DoAThing() , I already referenced the .dll containing the CustomControl class, but the problem is that .NativeElement; is a return type of Object[] , not Object , as the definition of a function says it should be.
Is there a .NativeElement way to go or I donβt understand its purpose?
UPDATE: I checked the types of objects in the resulting Object[] , and the first one is of type System.__ComObject , and the second is of type System.Int32 , but I'm not sure which one represents ...
source share