Complete the code to match a tuple with two integers using recursive pattern matching.
bool IsPairOfInts(object obj) => obj is ([1], int);string or other types instead of int.The pattern int matches any integer value in the tuple.
Complete the code to recursively match a nested tuple with an integer and another tuple.
bool IsNestedPair(object obj) => obj is (int, (int, [1]));string or bool.The inner tuple's second element should be an integer, so use int.
Fix the error in the recursive pattern matching to correctly match a tuple with a string and a nested tuple of two integers.
bool MatchPattern(object obj) => obj is ([1], (int, int));int instead of string for the first element.The first element is a string, so the pattern should be string.
Fill both blanks to match a tuple with a string and a nested tuple where the first element is an int and the second is a bool.
bool CheckTuple(object obj) => obj is ([1], ([2], bool));
double.The outer tuple's first element is a string, and the nested tuple's first element is an int.
Fill all three blanks to match a tuple with a string, a nested tuple with an int and a nested tuple with a bool and a double.
bool ComplexMatch(object obj) => obj is ([1], ([2], ([3], double)));
double in the wrong place.The outer tuple's first element is a string, the middle nested tuple's first element is an int, and the innermost nested tuple's first element is a bool.