Получи случайную криптовалюту за регистрацию!

What is difference between late binding and early binding in C | C# 1001 notes

What is difference between late binding and early binding in C#?

Early Binding or Static Binding. The name itself describes that compiler knows about what kind of object it is, what are all the methods and properties it contains. As soon as you declared the object, .NET Intellisense will populate its methods and properties on click of the dot button.

Late Binding or Dynamic Binding. The name itself describes that compiler does not know what kind of object it is, what are all the methods and properties it contains. You have to declare it as an object, later you need get the type of the object, methods that are stored in it. Everything will be known at the run time.