Re: Forcing an application to load assemblies from a specific path

Fernando Tubio <[email protected]> Tue, 26 May 2009 11:55:40 -0300
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <033901c9de12$185374f0$65043c0a@glasgow>
I agree with everything you say as a developer. But how does this help an 
end user? The application is still broken <=> breaking change.

- Fernando

----- Original Message ----- 
From: "Peter Ritchie" <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 26, 2009 11:21 AM
Subject: Re: [ADVANCED-DOTNET] Forcing an application to load assemblies
from a specific path


Agreed.  Just because the 3rd party code may be reflecting soley by method
name (which will work if there are no overloads) does not make adding an
overload a breaking change.  For example, they're looking for trouble with
code like this:

methodInfo =
typeof (FrameworkClass).GetMethod("Method", BindingFlags.Instance |
BindingFlags.Public);

They should have something more like this:

methodInfo =
typeof (FrameworkClass).GetMethod("Method", BindingFlags.Instance |
BindingFlags.Public, null, new Type[] {}, null);
There's all sorts of good reasons to reflect on types that could be
staticall linked...

Can you detail what 3rd party application this is, so we can avoid using it?

-- Peter

===================================
View archives and manage your subscription(s) at
http://peach.ease.lsoft.com/archives

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives