相关疑难解决方法(0)

new()是什么意思?

AuthenticationBaseWCF RIA服务中有一个类.类定义如下:

// assume using System.ServiceModel.DomainServices.Server.ApplicationServices

public abstract class AuthenticationBase<T> 
    : DomainService, IAuthentication<T> 
    where T : IUser, new()
Run Code Online (Sandbox Code Playgroud)

new()这段代码意味着什么?

c# generics new-operator

13
推荐指数
3
解决办法
2061
查看次数

标签 统计

c# ×1

generics ×1

new-operator ×1