public Permission(RoleAssignment ass, bool andLoad = true) { this.Context = ass.Context; if (andLoad) { ass.LoadAssignment(); } this.LoginName = ass.Member.LoginName; this.MemberName = ass.Member.Title; this.MemberId = ass.Member.Id; this.PrincipalId = ass.PrincipalId; this.Type = ass.Member.PrincipalType; this.Permissions = this.ParseBindings(ass.RoleDefinitionBindings); }