How can we Achieve Late binding in C#.Can any give one example.
Answer Posted / dileep
Late Binding means compiler doesn't have any prior knowledge
about COM's methods and properties and it is delayed until
runtime. Actually program learns the addresses of methods
and properties at execution time only i.e. when those
methods and properties are invoked. Late bound code
typically refers client objects through generic data types
like 'object' and relies heavily on runtime to dynamically
locate method addresses. We do late binding in C# through
reflection. Reflection is a way to determine the type or
information about the classes or interfaces.
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
What is the syntax for calling an overloaded constructor within a constructor?
windows c# using datagridview in edit form sql server
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
Define multicast delegate? How it be used?
Can constructor have return type c#?
What are the differences between static, public and void in c#?
What is the difference between Java and .NET garbage collectors?
What is the difference between selection and projection?
Where is the keyword void used?
Explain concurrency with aop?
What are the drawbacks of extending an interface as opposed to extending a class?
What does int32 mean in c#?
What is an interface class in c#?
Why do we need encapsulation in c#?
What is the difference between integer and double?