我有以下代码:
using System;
using System.Collections;
using System.Security;
using System.Security.Principal;
public class SystemPrincipal : IPrincipal {
private IIdentity _identity;
private StringTable _roles;
public SystemPrincipal(IIdentity id, StringTable roles) {
_identity = id;
_roles = roles;;
}
public IIdentity Identity {
get { return _identity; }
}
public bool IsInRole(String role) {
bool result = false;
if (null != _roles) {
result = _roles.Contains(role);
}
return result;
}
}
我想查看 IIdentity 或 StringTable 的定义,所以我右键单击并选择 goto 定义,但我得到“无法导航到”IIdentity 或 StiringTable。
基于谷歌的灵魂,我重建了项目,但这并没有解决问题。