I've created a method:
public static Tuple<string, string, string> SplitStr(string req)
{
//...
return (A, B, C)
}
it complaint that "CSOOZQ: Cannot implicitly convert type '(strinq _keyword, strinq _filterCondition, strinq _filterCateqory)' to 'System.Tuple<strinq, strinq, string)‘"
But if code:
public static (string, string, string) SplitStr(string req)
{
//...
return (A, B, C)
}
The error goes away. From the error, it looks like the bracket form of tuple and the one Tuple<>
are different.
- Is it safe to use the bracket form ?
- What's the difference, why are there 2 types of Tuple ? Should I use the
Tuple<>
in my case ? How do I return the Tuple ?
Thanks.