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 execution entry point for a c# console application?
What is the delegate in c#?
Can we have static indexer in c#?
Please explain value types and reference types used in c#?
What is the purpose of reserved word using in c#?
What is a linked list c#?
What are synchronous and asynchronous operations?
What are types in c#?
How many digits are in an integer?
What is dll hell, and how does .net solve it?
Distinguish between system.string and system.text.stringbuilder classes?
You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?
Can you inherit multiple classes in c#?
What is the relationship between a process, application domain, and application?
What are the advantages of constructor?