Click here to Skip to main content
15,914,071 members
Home / Discussions / C#
   

C#

 
QuestionSelecting the current row in a DataGridView Pin
ElCaballo12-Jan-06 7:13
ElCaballo12-Jan-06 7:13 
AnswerRe: Selecting the current row in a DataGridView Pin
Daniel Santillanes12-Jan-06 13:29
professionalDaniel Santillanes12-Jan-06 13:29 
QuestionHow to delete rows from a table Pin
dvsr12-Jan-06 7:04
dvsr12-Jan-06 7:04 
AnswerRe: How to delete rows from a table Pin
Christian Graus12-Jan-06 12:49
protectorChristian Graus12-Jan-06 12:49 
QuestionHow to format ugly treeview checkbox? Pin
pliu_200012-Jan-06 6:23
pliu_200012-Jan-06 6:23 
AnswerRe: How to format ugly treeview checkbox? Pin
Judah Gabriel Himango12-Jan-06 9:56
sponsorJudah Gabriel Himango12-Jan-06 9:56 
GeneralRe: How to format ugly treeview checkbox? Pin
pliu_200012-Jan-06 13:38
pliu_200012-Jan-06 13:38 
Questioncross assembly GetType Pin
alexrait112-Jan-06 5:42
alexrait112-Jan-06 5:42 
I have two simple dlls and one main application.
first dll is:
namespace baseDll{
public class baseClass{}
}
the second dll is:

using baseDll;
namespace childClass:baseClass{
public class childClass{}
}
//with a correct reference to base dll
and the main application is:
public static void Main(string[] args){
Assembly a1 = Assembly.LoadFile(@"C:\childDll.dll");
Assembly a2 = Assembly.LoadFile(@"C:\baseDll.dll");
System.Type t2 = a2.GetType("baseDll.baseClass");
System.Type t1 = a1.GetType("childDll.childClass");

if (t2 != null){
Console.WriteLine(t2.FullName);
}
if (t1 != null){
Console.WriteLine(t1.FullName);
}

}

It prints only t2, while t1 has an undifined value..

What's wrong, and what can be a workaround to this?

-- modified at 14:45 Thursday 12th January, 2006

Now I tried to run it with mono, and it works ok..
Moreover when I use Assembly.LoadFrom instead of Assembly.LoadFile it works fine...
AnswerRe: cross assembly GetType Pin
Robert Rohde12-Jan-06 14:09
Robert Rohde12-Jan-06 14:09 
GeneralRe: cross assembly GetType Pin
alexrait112-Jan-06 21:20
alexrait112-Jan-06 21:20 
GeneralRe: cross assembly GetType Pin
Robert Rohde12-Jan-06 21:37
Robert Rohde12-Jan-06 21:37 
QuestionEasy question Pin
Small Rat12-Jan-06 5:18
Small Rat12-Jan-06 5:18 
AnswerRe: Easy question Pin
Koushik Biswas12-Jan-06 6:01
Koushik Biswas12-Jan-06 6:01 
Questioncommands don't work??? Pin
melanieab12-Jan-06 4:56
melanieab12-Jan-06 4:56 
AnswerRe: commands don't work??? Pin
Michael Potter12-Jan-06 5:10
Michael Potter12-Jan-06 5:10 
QuestionDataSet and Database Pin
Sasuko12-Jan-06 4:53
Sasuko12-Jan-06 4:53 
AnswerRe: DataSet and Database Pin
harryjo12-Jan-06 5:09
harryjo12-Jan-06 5:09 
GeneralRe: DataSet and Database Pin
Sasuko12-Jan-06 12:35
Sasuko12-Jan-06 12:35 
GeneralRe: DataSet and Database Pin
Daniel Santillanes12-Jan-06 13:08
professionalDaniel Santillanes12-Jan-06 13:08 
QuestionRadioButtonList Control - Problems getting value from listItems programmatically added - HELP! Pin
Alan R. Smith12-Jan-06 4:43
Alan R. Smith12-Jan-06 4:43 
QuestionFinding strings in a project Pin
MartinSmith12-Jan-06 3:51
MartinSmith12-Jan-06 3:51 
QuestionMapping a Drive at runtime Pin
exhaulted12-Jan-06 2:49
exhaulted12-Jan-06 2:49 
AnswerRe: Mapping a Drive at runtime Pin
Koushik Biswas12-Jan-06 6:07
Koushik Biswas12-Jan-06 6:07 
GeneralRe: Mapping a Drive at runtime Pin
exhaulted12-Jan-06 9:08
exhaulted12-Jan-06 9:08 
Questionproblem with datagrid.unselect Pin
melanieab12-Jan-06 2:41
melanieab12-Jan-06 2:41 

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.