How to get the constraint part of a generic method as a text by Roslyn?

Viewed 114

How to get the constraint part of a generic method as a text by IMethodSymbol?

public static IEnumerable<Student> Get<T, V>(V v, T t)
    where T : class, ICloneable, new()
    where V : struct
{
    return null;
}

I want to get the below result

    where T: class, ICloneable, new()
    where V: struct
0 Answers
Related