locked
Code in C# consumed by VisualBasic.NET RRS feed

  • Question

  • User1486439998 posted

    Hi

    I have a question and was hoping someone can answer it.

    If you write code in C# and say have a string named DataString and dataString in C# they are both different string.

    If the code above is then consumed by VisualBasic.NET, which is case-insentive, what would happen, would Visualbasic be able to tell the differance or would it throw an error.

    Thanks

    George 

    Wednesday, October 2, 2013 2:00 PM

Answers

  • User753101303 posted

    Hi,

    Never tried but see : http://msdn.microsoft.com/en-us/library/12a7a7h3.aspx

    Basically in this case, you should mark your assembly with a CLSCompliant attribute. Then when using a construct that can't be exposed to other languages (such as case sensitive only members) you'll get a warning. Just make sure to fix all of them.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 2, 2013 2:36 PM

All replies

  • User753101303 posted

    Hi,

    Never tried but see : http://msdn.microsoft.com/en-us/library/12a7a7h3.aspx

    Basically in this case, you should mark your assembly with a CLSCompliant attribute. Then when using a construct that can't be exposed to other languages (such as case sensitive only members) you'll get a warning. Just make sure to fix all of them.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 2, 2013 2:36 PM
  • User1486439998 posted

    Hi PatriceSC

    Thanks

    George

    Wednesday, October 2, 2013 6:43 PM