Skip to main content
Code Review

Return to Revisions

2 of 4
replaced http://stackoverflow.com/ with https://stackoverflow.com/

You're loading every DLL in the directory even if you find what you want in the first one.

I'd guess that loading an assembly is what takes more time and resources than looking for what you want in the assembly-after-it's-loaded.

You code will fail if there's a type which implements IDataAccess but which doesn't have an Instance property.

You might want to load into a different AppDomain if you want to unload the assembly which you loaded.

ChrisW
  • 13k
  • 1
  • 35
  • 76
default

AltStyle によって変換されたページ (->オリジナル) /