New T() should call Activator.CreateInstance unconditionally.
This is consistent with behavior of "new" when used with structs in general - we should call public parameterless constructor if present, which Activator.CreateInstance does. It is also consistent with VB and F# ***NO_CI*** (changeset 1330480)
Showing
想要评论请 注册 或 登录