You can do: System.ComponentModel.ISupportInitialize.SomeProperty.GetValue(self)
Or System.ComponentModel.ISupportInitialize.SomeProperty.SetValue(self, value) We've exposed these 2 helper methods off of the reflected property for this purpose. Even if we hadn't done that you'd still be able to do: System.ComponentModel.ISupportInitialize.SomeProperty.__get__(self,type(self)) Or System.ComponentModel.ISupportInitialize.SomeProperty.__set__(self,value) But we thought GetValue & SetValue were friendlier. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Sent: Friday, August 04, 2006 3:07 AM To: [email protected] Subject: [IronPython] cast to different interface Hello, i'm trying to use serveral interfaces of one object. The solution mentioned here earlier don't work for porperties: Problem: dgv = System.Windows.Forms.DataGridView() dgv.BeginInit() Solution: System.ComponentModel.ISupportInitialize.BeginInit(dgv) How can i use this solution for properties? Greetings Christoph _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
