K
Kalpesh Shah
If I understand it correctly, you want to call
[Company2].{SomeFunctions}.FunctionA()
FROM
[Company1.Company2].{SomeFunctions}.FunctionB()
I tried on the following code & the IDE shows an error
that FunctionA is not defined, as you said
Now, this is how I solved it
Since the user is Company1.Company2 & the FunctionA is inside Company2
namespace, Add a using statement, see below for the code
using c2 = Company2;
namespace Company2
{
public class SomeFunctions
{
public void FunctionA()
{
Console.WriteLine("hehe");
// Do Something.
}
}
}
namespace Company1.Company2
{
public class SomeFunctions
{
public void FunctionB()
{
c2.SomeFunctions s = new c2.SomeFunctions();
s.FunctionA();
}
}
}
I hope, this solves the problem & I am in sync with you
Kalpesh
[Company2].{SomeFunctions}.FunctionA()
FROM
[Company1.Company2].{SomeFunctions}.FunctionB()
I tried on the following code & the IDE shows an error
that FunctionA is not defined, as you said
Now, this is how I solved it
Since the user is Company1.Company2 & the FunctionA is inside Company2
namespace, Add a using statement, see below for the code
using c2 = Company2;
namespace Company2
{
public class SomeFunctions
{
public void FunctionA()
{
Console.WriteLine("hehe");
// Do Something.
}
}
}
namespace Company1.Company2
{
public class SomeFunctions
{
public void FunctionB()
{
c2.SomeFunctions s = new c2.SomeFunctions();
s.FunctionA();
}
}
}
I hope, this solves the problem & I am in sync with you
Kalpesh