The White UI Automation library makes extensive use of the Castle Project’s DynamicProxy 2. From what I understand, DynamicProxy is utilized to “wrap” MS UI Automation objects, and used to retrive objects inside their parent windows.
I need to understand if DynamicProxy is necessary and if it could be replaced with something faster, namely statically built classes instead of proxy classes generated at runtime, which IMO is unnecessary slowdown.
What exactly is DynamicProxy doing in the White library and can it be replaced? Any tips or pointers are appreciated.
I decided not to use White (and instead MS UI Automation directly), but I also use Castle Dynamic Proxy in my code. Here is a decent start at locating where it is used:
You can get the source at: https://github.com/petmongrels/white
(Mine is a bit out of date)