I'm trying to create an instance of ResourceManager:
public ResourceManager(baseName, Assembly assembly)
I know the name of the assembly that the resource is in (it's not the executingassembly), and it's referenced in the project, but how do I specify it here in the code (using the above constructor)?
May be a bit of a stupid question, but I'm a bit stuck!
Thanks!
Best Answer
The easiest way to grab an assembly reference is via a type that you know is declared in the assembly. e.g.:
typeof(SomeKnownType).Assembly
.