Click here to Skip to main content
15,891,777 members
Home / Discussions / C#
   

C#

 
AnswerRe: fingerprint recognition Pin
Abhinav S21-Jan-13 0:59
Abhinav S21-Jan-13 0:59 
GeneralRe: fingerprint recognition Pin
yinyin8425-Jan-13 18:29
yinyin8425-Jan-13 18:29 
AnswerRe: fingerprint recognition Pin
Rahul Rajat Singh21-Jan-13 1:05
professionalRahul Rajat Singh21-Jan-13 1:05 
GeneralRe: fingerprint recognition Pin
yinyin8425-Jan-13 18:28
yinyin8425-Jan-13 18:28 
AnswerRe: fingerprint recognition Pin
Sivaraman Dhamodharan21-Jan-13 1:26
Sivaraman Dhamodharan21-Jan-13 1:26 
GeneralRe: fingerprint recognition Pin
yinyin8425-Jan-13 18:21
yinyin8425-Jan-13 18:21 
QuestionC# - Changing background of another form Pin
Steven Borges20-Jan-13 23:48
Steven Borges20-Jan-13 23:48 
AnswerRe: C# - Changing background of another form Pin
Pete O'Hanlon21-Jan-13 0:22
mvePete O'Hanlon21-Jan-13 0:22 
AnswerRe: C# - Changing background of another form Pin
BobJanova21-Jan-13 5:45
BobJanova21-Jan-13 5:45 
GeneralRe: C# - Changing background of another form Pin
Steven Borges21-Jan-13 8:08
Steven Borges21-Jan-13 8:08 
GeneralRe: C# - Changing background of another form Pin
BobJanova21-Jan-13 13:20
BobJanova21-Jan-13 13:20 
QuestionC# way to create and save a video from locally stored images Pin
codechek20-Jan-13 23:42
codechek20-Jan-13 23:42 
QuestionEDI Parsers Pin
FatCatProgrammer20-Jan-13 12:52
FatCatProgrammer20-Jan-13 12:52 
AnswerRe: EDI Parsers Pin
Simon_Whale20-Jan-13 23:10
Simon_Whale20-Jan-13 23:10 
GeneralRe: EDI Parsers Pin
FatCatProgrammer21-Jan-13 5:37
FatCatProgrammer21-Jan-13 5:37 
QuestionReflection with args.Lenght =0 Pin
PozzaVecia20-Jan-13 12:25
PozzaVecia20-Jan-13 12:25 
suppose I have the following code
C#
class Program
{
    static void Main(string[] args)
    { 
      if( args.Lenght==0){    
    System.Console.WriteLine("Hello, World!");
          }
      else
      {System.Console.WriteLine("Bye Bye, World!");}
    }

}


Using reflection I need to call "Hello, Word!", I try this:
// Load the assembly into the current appdomain
//Name of the above exe should be given as parameter.
System.Reflection.Assembly newAssembly = System.Reflection.Assembly.LoadFrom(@"C:\AppDomains.exe");

// Invoke the Main method.
newAssembly.EntryPoint.Invoke(null, new string[] { null });


But Bye Bye appears...I should look for a solution without changing my Program class of course.
Any idea?
Thanks
AnswerRe: Reflection with args.Lenght =0 Pin
Super Lloyd20-Jan-13 12:38
Super Lloyd20-Jan-13 12:38 
GeneralRe: Reflection with args.Lenght =0 Pin
PozzaVecia20-Jan-13 12:50
PozzaVecia20-Jan-13 12:50 
AnswerRe: Reflection with args.Lenght =0 Pin
FatCatProgrammer20-Jan-13 12:56
FatCatProgrammer20-Jan-13 12:56 
GeneralRe: Reflection with args.Lenght =0 Pin
PozzaVecia20-Jan-13 18:44
PozzaVecia20-Jan-13 18:44 
AnswerRe: Reflection with args.Lenght =0 Pin
PIEBALDconsult20-Jan-13 14:07
mvePIEBALDconsult20-Jan-13 14:07 
GeneralRe: Reflection with args.Lenght =0 Pin
PozzaVecia20-Jan-13 18:42
PozzaVecia20-Jan-13 18:42 
GeneralRe: Reflection with args.Lenght =0 Pin
PIEBALDconsult21-Jan-13 4:47
mvePIEBALDconsult21-Jan-13 4:47 
AnswerRe: Reflection with args.Lenght =0 Pin
Alan N20-Jan-13 22:37
Alan N20-Jan-13 22:37 
QuestionNeed some guide line for few tools which is used for dotnet. Pin
Tridip Bhattacharjee20-Jan-13 8:59
professionalTridip Bhattacharjee20-Jan-13 8:59 

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.