12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Reflection;
- namespace OpenSEMI.ClientBase.Utility
- {
- public class AssemblyUtil
- {
- public static Type GetType(string typeName)
- {
- return Type.GetType(typeName);
- }
- public static object CreateInstance(Type type)
- {
- return Activator.CreateInstance(type);
- }
- public static Assembly LoadAssembly(string assemblyName)
- {
- return Assembly.Load(assemblyName);
- }
- public static object CreateInstance(Assembly assembly, string typeName)
- {
- return assembly.CreateInstance(typeName);
- }
- public static string GetExecutePath()
- {
- return AppDomain.CurrentDomain.BaseDirectory;
- }
- }
- }
|