C# ReSharper-格式泛型类型约束

C# ReSharper-格式泛型类型约束,c#,resharper,code-formatting,C#,Resharper,Code Formatting,以下是来自以下站点的泛型类型约束声明示例: class-MyClass T:在哪里上课 其中U:struct { } 可以用这种方式使用ReSharper格式化我的类吗?当前,在格式化运行后,声明位于一行: class MyClass<T, U> where T : class where U : struct { } class MyClass where T:class where U:struct { } 在ReSharper选项中搜索类型约束。取消勾选同一行上的Allow

以下是来自以下站点的泛型类型约束声明示例:

class-MyClass
T:在哪里上课
其中U:struct
{ }
可以用这种方式使用ReSharper格式化我的类吗?当前,在格式化运行后,声明位于一行:

class MyClass<T, U> where T : class where U : struct
{ }
class MyClass where T:class where U:struct
{ }

在ReSharper选项中搜索
类型约束。取消勾选同一行上的
Allow type contsraints
应保持所需的格式


在ReSharper选项中搜索
类型约束。取消勾选同一行上的
Allow type contsraints
应保持所需的格式


哇,谢谢,我真的不知道我是怎么错过的。哇,谢谢,我真的不知道我是怎么错过的。
class MyClass<T, U> where T : class where U : struct
{ }