System.CompatibilityExtensions.GetIsGenericType C# (CSharp) Method