-1

I have

var array = new JArray(new string[] { "one", "two", "three" });

But array.IndexOf(new JValue("one")) returns -1, which means that no such item found.

How to use IndexOf correctly to obtain index of element by value?

Grant Winney
  • 65,241
  • 13
  • 115
  • 165

1 Answers1

1

See this GitHub issue. Also, here is the linked stackoverflow question in the issue.

CSakura
  • 538
  • 1
  • 6
  • 17