VB to C#(one line of code)

Hey,

in Visual C# 2005 what would this VB 2005 code be:

ComapreMethod

Thanks :)




Answer this question

VB to C#(one line of code)

  • J9

    CompareMethod is a enum for how to compare strings. Binary means case sensitive and text means case insensitive. If you want to do case insensitive comparsions compare try something like this



    if("Test".ToLower() == "test".ToLower())
    {
    this.Text="Equal";
    }





  • MShetty

    well here is the VB(it needs to be a variable):

    SearchType = CompareMethod.Binary



  • VB to C#(one line of code)