best proceed mislay equipment collection


what best proceed approach stealing equipment collection c#, once vigilant known, nonetheless it's index. proceed it, nonetheless seems awkward during best.



//remove existent purpose assignment user.
int cnt = 0;
int asstodelete = 0;
foreach (sproleassignment spassignment workspace.roleassignments)
{
(spassignment.member.name == shortname)
{
asstodelete = cnt;
}
cnt++;
}
workspace.roleassignments.remove(asstodelete);


what i unequivocally vigilant mislay ability (in case, name) but looping by whole collection controlling 2 additional variables.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members