面对技术,你别无选择,.NET世界是如此精彩,而我们要做的就是:Thinking More
1、对象初始化: User user=new User{Age=27,Name="小王"};
2、集合初始化器:List<User> userList=new List<User>
{
new User{Name="小王",Age=27},
new User{Name="小白",Age=27}
};
Powered by: 博客园 Copyright © 2024 ie421 Powered by .NET 8.0 on Kubernetes