Click here to Skip to main content
16,006,768 members
Home / Discussions / C#
   

C#

 
GeneralCalling a method at run-time Pin
Radoslav Bielik26-Aug-04 3:01
Radoslav Bielik26-Aug-04 3:01 
GeneralRe: Calling a method at run-time Pin
Not Active26-Aug-04 3:15
mentorNot Active26-Aug-04 3:15 
GeneralRe: Calling a method at run-time Pin
Heath Stewart26-Aug-04 8:22
protectorHeath Stewart26-Aug-04 8:22 
GeneralRe: Calling a method at run-time Pin
LongRange.Shooter26-Aug-04 3:52
LongRange.Shooter26-Aug-04 3:52 
GeneralRe: Calling a method at run-time Pin
Radoslav Bielik26-Aug-04 22:06
Radoslav Bielik26-Aug-04 22:06 
GeneralRe: Calling a method at run-time Pin
Brian Delahunty26-Aug-04 5:27
Brian Delahunty26-Aug-04 5:27 
GeneralRe: Calling a method at run-time Pin
leppie26-Aug-04 7:36
leppie26-Aug-04 7:36 
GeneralRe: Calling a method at run-time Pin
Heath Stewart26-Aug-04 8:26
protectorHeath Stewart26-Aug-04 8:26 
No, that's not late-binding. Late binding has to do with how members are resolved and invoked. The actually implementation is uknown at compile time. Script wouldn't exist without late-binding, and it's an important part of COM. A good example in .NET of late-binding is:
public interface IFoo
{
  void Test();
}
class Foo1 : IFoo
{
  void Test() { Console.WriteLine("from Foo1"); }
}
class Foo2 : IFoo
{
  void Test() { Console.WriteLine("from Foo2"); }
}
public class FooFactory
{
  public static IFoo CreateFoo(string cls)
  {
    if (cls == "foo1") return new Foo1();
    else if (cls == "foo2") return new Foo2();
    else return null;
  }
}
Callers to FooFactory.CreateFoo get back an IFoo without knowing the implementing type. That's late-binding.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: Calling a method at run-time Pin
leppie26-Aug-04 9:21
leppie26-Aug-04 9:21 
GeneralRe: Calling a method at run-time Pin
Heath Stewart26-Aug-04 8:32
protectorHeath Stewart26-Aug-04 8:32 
GeneralRe: Calling a method at run-time Pin
LongRange.Shooter26-Aug-04 10:22
LongRange.Shooter26-Aug-04 10:22 
GeneralRe: Calling a method at run-time Pin
Heath Stewart26-Aug-04 10:31
protectorHeath Stewart26-Aug-04 10:31 
GeneralRe: Calling a method at run-time Pin
Radoslav Bielik26-Aug-04 22:10
Radoslav Bielik26-Aug-04 22:10 
GeneralSeparate repeated items Pin
Diego F.26-Aug-04 1:58
Diego F.26-Aug-04 1:58 
GeneralRe: Separate repeated items Pin
LongRange.Shooter26-Aug-04 3:54
LongRange.Shooter26-Aug-04 3:54 
GeneralRe: Separate repeated items Pin
Diego F.26-Aug-04 4:51
Diego F.26-Aug-04 4:51 
GeneralRe: Separate repeated items Pin
LongRange.Shooter26-Aug-04 10:17
LongRange.Shooter26-Aug-04 10:17 
GeneralAccessing the .Net command prompt Pin
Stuggo26-Aug-04 1:46
Stuggo26-Aug-04 1:46 
GeneralRe: Accessing the .Net command prompt Pin
Salil Khedkar26-Aug-04 2:19
Salil Khedkar26-Aug-04 2:19 
GeneralRe: Accessing the .Net command prompt Pin
billb211226-Aug-04 2:38
billb211226-Aug-04 2:38 
QuestionHow to Get All Databases Names in a Sql Server ? Pin
pubududilena26-Aug-04 1:45
pubududilena26-Aug-04 1:45 
AnswerRe: How to Get All Databases Names in a Sql Server ? Pin
David Salter26-Aug-04 2:13
David Salter26-Aug-04 2:13 
AnswerRe: How to Get All Databases Names in a Sql Server ? Pin
Colin Angus Mackay26-Aug-04 2:55
Colin Angus Mackay26-Aug-04 2:55 
AnswerRe: How to Get All Databases Names in a Sql Server ? Pin
Michael Potter26-Aug-04 6:09
Michael Potter26-Aug-04 6:09 
GeneralRe: How to Get All Databases Names in a Sql Server ? Pin
pubududilena26-Aug-04 17:51
pubududilena26-Aug-04 17:51 

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.