I have the following lines of code:
string line = "<!--SomeValue=\"asdf\"-->";
int start = line.IndexOf("=\"") + 2;
return line.Substring(start, line.IndexOf("\"-->") - start);
This will return asdf.
I receive IDE0057 from the code analysis. I'm thinking there's a simple way to simplify :).
Edit: The question is how do I simplify my code above to remove the IDE0057 message received. Reading the documentation provided for the message it is unclear how to fix it.