Click here to Skip to main content
15,913,282 members
Home / Discussions / C#
   

C#

 
AnswerRe: Efficient Image loading Pin
Alan Balkany9-Feb-09 4:17
Alan Balkany9-Feb-09 4:17 
GeneralRe: Efficient Image loading Pin
RanCohen10-Feb-09 4:41
RanCohen10-Feb-09 4:41 
Questionhow to make .exe file in C# Pin
jananiSreedhar7-Feb-09 7:50
jananiSreedhar7-Feb-09 7:50 
AnswerRe: how to make .exe file in C# PinPopular
Anthony Mushrow7-Feb-09 7:57
professionalAnthony Mushrow7-Feb-09 7:57 
JokeRe: how to make .exe file in C# Pin
Luc Pattyn7-Feb-09 9:17
sitebuilderLuc Pattyn7-Feb-09 9:17 
QuestionPlugins and Abstract classes. Pin
iAmEntity7-Feb-09 6:45
iAmEntity7-Feb-09 6:45 
AnswerRe: Plugins and Abstract classes. Pin
Anthony Mushrow7-Feb-09 7:54
professionalAnthony Mushrow7-Feb-09 7:54 
RantRe: Plugins and Abstract classes. Pin
iAmEntity7-Feb-09 8:05
iAmEntity7-Feb-09 8:05 
Bah, didn't work. I get the error The given expression is never of the provided type (CS0184). Here is the context:

		private void TryLoadingPlugin(string filename)<br />
		{<br />
			try<br />
			{<br />
				FileInfo file = new FileInfo(filename);<br />
				filename = file.Name.Remove(<br />
					file.Name.Length - file.Extension.Length,<br />
					file.Extension.Length); //remove only the extension.<br />
//				Assembly asm = Assembly.LoadFrom(file.FullName);<br />
				Assembly asm = AppDomain.CurrentDomain.Load(filename);<br />
				foreach(Type t in asm.GetTypes())<br />
				{<br />
					if (t is BasePlugin)<br />
					{<br />
						if( !t.IsInterface && !t.IsAbstract)<br />
						{<br />
							FoundPlugins.Add(t);<br />
							break; <br />
						}<br />
					}<br />
				}<br />
			}<br />
			catch(Exception e){throw e;}<br />
		}


Drat, inline code removes tabs Mad | :mad: D'Oh! | :doh:
GeneralRe: Plugins and Abstract classes. Pin
Anthony Mushrow7-Feb-09 9:03
professionalAnthony Mushrow7-Feb-09 9:03 
GeneralRe: Plugins and Abstract classes. Pin
iAmEntity7-Feb-09 9:33
iAmEntity7-Feb-09 9:33 
QuestionChecking for data Pin
ziwez07-Feb-09 5:07
ziwez07-Feb-09 5:07 
AnswerRe: Checking for data Pin
Dave Kreskowiak7-Feb-09 8:54
mveDave Kreskowiak7-Feb-09 8:54 
GeneralRe: Checking for data Pin
DaveyM697-Feb-09 10:14
professionalDaveyM697-Feb-09 10:14 
GeneralRe: Checking for data Pin
Dave Kreskowiak7-Feb-09 11:47
mveDave Kreskowiak7-Feb-09 11:47 
QuestionVoice to text Conversion in windows mobile application Pin
ReachMe@CodeProject7-Feb-09 3:55
ReachMe@CodeProject7-Feb-09 3:55 
QuestionRefreshing datagrid Pin
Muammar©7-Feb-09 3:20
Muammar©7-Feb-09 3:20 
AnswerRe: Refreshing datagrid Pin
Muammar©7-Feb-09 3:58
Muammar©7-Feb-09 3:58 
GeneralRe: Refreshing datagrid Pin
Rafone7-Feb-09 5:00
Rafone7-Feb-09 5:00 
GeneralRe: Refreshing datagrid Pin
Muammar©7-Feb-09 18:56
Muammar©7-Feb-09 18:56 
Questionbest choice ? Pin
Xmen Real 7-Feb-09 2:50
professional Xmen Real 7-Feb-09 2:50 
AnswerRe: best choice ? [modified] Pin
DaveyM697-Feb-09 3:25
professionalDaveyM697-Feb-09 3:25 
AnswerRe: best choice ? Pin
Luc Pattyn7-Feb-09 3:48
sitebuilderLuc Pattyn7-Feb-09 3:48 
Questionfile upload error Pin
George_George7-Feb-09 2:43
George_George7-Feb-09 2:43 
AnswerRe: file upload error Pin
Nicholas Butler7-Feb-09 3:34
sitebuilderNicholas Butler7-Feb-09 3:34 
GeneralRe: file upload error Pin
George_George7-Feb-09 22:19
George_George7-Feb-09 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.