Last post May 31, 2010 11:59 PM by Monisha
May 28, 2010 02:01 PM|Monisha|LINK
I have created a dll in c# which has two functions named
Writer() and writer()
When I compile my dll and use this dll in my C# website. I am able use both the functions as
class1 obj = new class1();
but when I am trying to use this dll in VB.Net website
I am unable to use both the functions.
Can any one please tell me the reason why?
May 28, 2010 02:27 PM|SGWellens|LINK
VB is case insensitive.
BTW: Using case to differentiate between functions is a terrible idea. Simply dreadful.
May 29, 2010 01:32 PM|DigiMortal|LINK
Don't use functions with same name and different casing. Event if you can avoid VB.NET it is still bad practice because it leads to code that is not easy to read or understand. Give your functions meaningful names and
make your code as readable as possible. Even you may find your code hard to read and use if you are not seen it by some months. Writing clean code you can be sure that you and your fellow developers can use your code easily without any heavy misunderstandings.
May 31, 2010 11:59 PM|Monisha|LINK
I got it.
Thanks for the reply.