diff --git a/tests/CSharp/CSharp.cs b/tests/CSharp/CSharp.cs index 3e183217..c5049bfa 100644 --- a/tests/CSharp/CSharp.cs +++ b/tests/CSharp/CSharp.cs @@ -142,10 +142,7 @@ namespace CppSharp.Tests ClassTemplateSpecialization classTemplateSpecialization; var templateSpecializationType = type as TemplateSpecializationType; if (templateSpecializationType != null) - { - classTemplateSpecialization = templateSpecializationType.GetClassTemplateSpecialization(); - return classTemplateSpecialization.Arguments[0].Type.Type; - } + return templateSpecializationType.Arguments[0].Type.Type; var declaration = ((TagType) type).Declaration; if (declaration.IsDependent) return new TagType(((Class) declaration).TemplateParameters[0]);