我倾向于(回到c ++天)向小方法添加内联提示,例如:
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Add(this IProject @this, IComponent component)
{
@this.Components.Add(component);
}
Run Code Online (Sandbox Code Playgroud)
我想知道是否可以首先内联静态类扩展方法?
| 归档时间: |
|
| 查看次数: |
811 次 |
| 最近记录: |