Friday 6 July 2012

Is this valid? Assembly.Load("foo.dll");

Purpose:
  • This is rather poor technical interview question in my honest opinion. At best it shows that someone has experience in using Reflection and knows that there is different ways of loading assemblies. But having recall of method signatures does not indicate prowess.
  • Perhaps consider rather delving into the Type system and the purpose behind using reflection.

Potential Answer:
No it is not. The Load function required a fully qualified assembly name. If you wanted to load a dll file you would need to use the LoadFile method instead...

No comments:

Post a Comment