Using Type.GetType() function to get the type of the class from the different namespace
<p>I want to call a class and its method with the name of the class and the method name will be known at run time. the class i want to call is a in a different project ClassLibrary. .The namespace of the class which is to be called i have added reference of it to my current project. and wrote the following code to call.</p>

<pre><code>Type CalledType = Type.GetType("ClassLibraryLocation." + ClassName);

MethodInfo info = CalledType.GetMethod(FunctionName);

Object new_obj = Activator.CreateInstance(CalledType);

Object retval = info.Invoke(new_obj, new object[] { "ABC" });
Console.WriteLine(retval);

//ClassLibraryLocation is an anather namespace for which the reference is added.

//ClassName is the name of the class present in the  ClassLibraryLocation  namespace

//FunctionName is the name of the function present in the  ClassName Class 
</code></pre>

<p>But The Type.GetType() Method returns Null CalledType</p>

<p>Please Help</p>

<p>Thanks</p>
