internal DsdRoleState InternalModify(DsdRoleBase dsdRole) { if (dsdRole == null) { throw new ArgumentNullException("dsdRole"); } _roleId = dsdRole.RoleId; _dsdSetId = dsdRole.DsdSetId; return(this); }
public static DsdRoleState Create(DsdRoleBase dsdRole) { if (dsdRole == null) { throw new ArgumentNullException("dsdRole"); } return(new DsdRoleState(dsdRole.Id) { _createOn = dsdRole.CreateOn }.InternalModify(dsdRole)); }