Code inspection: Unused union case (private accessibility)
This inspection reports a case of a union type with private accessibility that is never used, that is, the case is never used to create an instance of the union type. Remove the unused case, or create an instance of it where you need it.
Example
union Result(int, string);
class Parser
{
Result ParseNumber()
{
return 1;
}
}
union Result(int);
class Parser
{
Result ParseNumber()
{
return 1;
}
}
27 October 2026