public int Set(int newValue,Object obj) { //System.Windows.Forms.Control ctrl = (System.Windows.FormsControl)Object; }
The Object here is COM object. Now I want to convert it to some .Net object and get hold of it's properties. What is the easiest way to do it?