locked
Function in Assembly RRS feed

  • Question

  • User-1916576194 posted

    Hi,


    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();

    obj.Writer();

    obj.writer();

    *****************************

    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?


    Thanks.

    Monisha.

    Friday, May 28, 2010 2:01 PM

Answers

  • User187056398 posted

    VB is case insensitive.

    BTW:  Using case to differentiate between functions is a terrible idea.  Simply dreadful. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 28, 2010 2:27 PM
  • User-525215917 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 29, 2010 1:32 PM

All replies

  • User187056398 posted

    VB is case insensitive.

    BTW:  Using case to differentiate between functions is a terrible idea.  Simply dreadful. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 28, 2010 2:27 PM
  • User-525215917 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 29, 2010 1:32 PM
  • User-1916576194 posted

    I got it.

    Thanks for the reply.


    Monday, May 31, 2010 11:59 PM