c# - Get assembly reference without reflection or a known type -
in current framework's design, peruse types of specific assemblies , work based on types found. assemblies searches through determined application bootstrapper/initializer. assemblies compiled in, can referenced via: typeof(sometypeintheassembly).assembly . nice because bootstrapper code has strong reference type in assembly , there's no fumbling qualified names inline strings need manually kept up-to-date if assembly qualified name changes. didn't referencing unrelated type in assembly , being dependant on type being there. (what if moves assembly? if deprecate/delete type? change namespace?) in code, looks bit weird too: frameworkassemblyreader.read(typeof(someassemblynamespace.subnamespace.graphingcalculator).assembly); now in bootstrapping code, have direct dependency (although pretty trivial dependency) on graphingcalculator has nothing bootstrapping stage (and graphingcalculator, has nothing obtaining assembly references). avoid this, in each assembly...