Greeting,
I'm working on a class managing resources (satelite).
public CResMgr()
{
Assembly objClient = Assembly.GetCal lingAssembly();
_objResMgr = new ResourceManager (objClient.GetT ype().Namespace + '.'
+ DefaultBaseName , objClient);
The result of objClient.GetTy pe().Namespace is "System.Reflect ion",
not what I'm expecting.
Presently, I workaround by passing the caller's Type.
_objResMgr = new CResMgr(this.Ge tType());
public CResMgr(Type objCaller)
{
_objResMgr = new ResourceManager (objCaller.Name space + '.' +
DefaultBaseName , objCaller.Assem bly);
Is there a way to dynamically to retrieve the Namespace of the
calling obj?
I'm working on a class managing resources (satelite).
public CResMgr()
{
Assembly objClient = Assembly.GetCal lingAssembly();
_objResMgr = new ResourceManager (objClient.GetT ype().Namespace + '.'
+ DefaultBaseName , objClient);
The result of objClient.GetTy pe().Namespace is "System.Reflect ion",
not what I'm expecting.
Presently, I workaround by passing the caller's Type.
_objResMgr = new CResMgr(this.Ge tType());
public CResMgr(Type objCaller)
{
_objResMgr = new ResourceManager (objCaller.Name space + '.' +
DefaultBaseName , objCaller.Assem bly);
Is there a way to dynamically to retrieve the Namespace of the
calling obj?
Comment