VB Code:
Dim Growl As String = "This is some data" Dim Woof As String = IIf(Growl.Trim = String.Empty, "Hi", "Bye")
What I have in C# is:
But it squiggly blue lines the string.empty and says cannot convert to boolean.Code:string Growl = "MyData"; string Woof = (Growl.Trim() = string.Empty ? "Hi" : "Bye");
Any ideas?
Woof


Reply With Quote


