I have two lists
List list1 = new List();
List list2 = new List();
I want remove all elements from li
I think you mean the generic type List. You can use Linq to do this
List l = new List();
List l2 = new List();
l.Add("one");
l.Add("two");
l.Add("three");
l2.Add("one");
l2.Add("two");
l2.Add("three");
l2.Add("four");
l2.RemoveAll(x => l.Contains(x));