Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Library dll unless netloaded by AutoCAD

public class Locator{	private string _path;	public Locator()	{	}	public void InstallLocator(string path)	{		_path = path;		AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolve);	}	private Assembly AssemblyResolve(object sender, ResolveEventArgs args)	{		int position = args.Name.IndexOf(",");		if (position > -1)		{			try			{				string assemblyName = args.Name.Substring(0, position);				string assemblyFullPath = string.Empty;				//look in main folder				assemblyFullPath = _path + "" + assemblyName + ".dll";				if (File.Exists(assemblyFullPath))					return Assembly.LoadFrom(assemblyFullPath);			}			catch (Exception ex)			{				System.Diagnostics.Debug.WriteLine(ex.Message);			}		}		return null;	}}
Comment

PREVIOUS NEXT
Code Example
Csharp :: can a dictionary type use get set c# 
Csharp :: c# download to string 
Csharp :: soundplayer c# take uri 
Csharp :: C:UsersSherryDocumentssdata.dta 
Csharp :: JAJAAJAJAJ 
Csharp :: jsonconvert serializeobject and jsonconvert deserialize to list 
Csharp :: c# ulong 
Csharp :: get fixedupdate interval unity 
Csharp :: ef core totable 
Csharp :: blender how to switch cameras 
Csharp :: How to read key from web config in JavaScript 
Csharp :: how to make continuous progress bar 
Csharp :: unity tostring keep decimal part 
Csharp :: wpf create rectangle c# 
Csharp :: Program to find GCD or HCF of two numbers c# 
Csharp :: wpf xaml group of buttons 
Csharp :: excute same code mvc 
Csharp :: ilist validation wpf mvvm 
Csharp :: ip validation .net core 
Csharp :: unity custom editor hide values in dropdown list 
Csharp :: Razor do while loop 
Csharp :: check the request comes from which operating system used by user in asp net core 
Csharp :: remove tag anchor and inside tag from html raw text c# 
Csharp :: C# count specific words in string 
Csharp :: find first occurrence of character in string 
Csharp :: unity how to check object position 
Csharp :: swagger skip endpoint .net core 
Csharp :: what is c# used for 
Csharp :: convert uk string date to DateTime c# 
Csharp :: c# reduce a collection to a string 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =