Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
using System.Reflection;
try
{
//Load Diary assembly
Assembly assembly = Assembly.LoadFrom(System.AppDomain.CurrentDomain.BaseDirectory + "Bin\\ShowroomSuite.Library.Diary.dll");
// Walk through each type in the assembly
foreach (Type type in assembly.GetTypes ())
{ if (type.IsClass == true && type.FullName == "MyNamespace.MyClassName")
{
// Create parameter list
object[] arguments = new object [] {Dr};
objAppointmentList = type.InvokeMember("MyMethodName", BindingFlags.Default | BindingFlags.InvokeMethod, null, null, arguments);
}
}
}
catch (Exception ex)
{
//Code ommitted for clarity
}
finally
{
//Code ommitted for clarity
}
static void Main(string[] args)
{
Assembly T = Assembly.LoadFrom("CSDLL.dll");
foreach ( Type A in T.GetTypes() )
{
if (A.IsClass && A.Name == "CSDLL")
{
Console.WriteLine("Found. Invoking Function.");
object[] Parameters = new Object[2];
Parameters[0] = 2;
Parameters[1] = 5;
A.GetMethod("TestFunction").Invoke(null, Parameters);
}
else
{
Console.WriteLine("Class not found.");
Console.WriteLine(A.Name);
Console.WriteLine(Convert.ToString(A.IsClass));
}
}
Console.ReadLine();
}