It is just a theoretical question as asked to me during an interview. Basically, say we have two APIs and we referenced both DLLs in our application. Both these apis have same namespace, same class, and same methods. In such case, how will I differentiate between the methods when consuming them?
e.g. I have a class that calculates tax for consumers, and another that calculates tax for business. Both of them have a function TaxNameSpace.TaxClass.GetTaxRate()
. Now, if I referenced both these dlls at the same time, and I want to call these functions, how will I notify runtime which function to choose.