문제

I cerated a asp.net user profile with 1 property List<string> Password it contain 24 passwords , now i want to delete 4 passwords from this property values, how can i do this?

도움이 되었습니까?

해결책

To remove a range

Password.RemoveRange(index,count);

To remove a known index

Password.RemoveAt(index);

index is always zero based. All list of methods

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top