skip to main
|
skip to sidebar
Hard Work is Not Sufficient To be Successfull.....
Saturday, July 11, 2009
DeleteDuplicateRecord From ArrayList
ar is ArrayList
int index;
for(int i=0; i<(ar.Count-1); i++)
{
index=ar.IndexOf(ar[i], i+1);
while( index>i )
{
ar.RemoveAt(index);
if( i<(ar.Count-1) )
{
index=ar.IndexOf(ar[i], i+1);
}
else
{
index=-1;
} } }
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2009
(3)
▼
July
(3)
5. Open an EXE on Button Click Using System. Diag...
1. Convert String In Title Case C#string s = "This...
DeleteDuplicateRecord From ArrayList
About Me
Nagendra
http://xafdeveloper.blogspot.com http://ShubhTechnoExpert.blogspot.com
View my complete profile
No comments:
Post a Comment