小编Beg*_*ner的帖子

警告 CA1065 Microsoft 设计未实现异常

我在谷歌搜索,但找不到正确的答案。有谁知道如何处理这些错误?错误是:

 public override ReadOnlyCollection<SecurityKey> SecurityKeys
    {
        get { throw new NotImplementedException(); }
    }
Run Code Online (Sandbox Code Playgroud)

警告 20 CA1065:Microsoft.Design:“someToken.SecurityKeys.get()”创建类型为“NotImplementedException”的异常,该异常类型不应在属性中引发。如果可能引发此异常实例,请使用不同的异常类型,将此属性转换为方法,或更改此属性的逻辑,使其不再引发异常。D:\some\Security\someUserToken.cs

c# code-analysis notimplementedexception

3
推荐指数
1
解决办法
2213
查看次数