I was working on a database oriented application and came to know that i need a code snippet that can search in an arraylist. Obviously, If you have stored defined datatypes directly, it is very easy to search the arraylist. That is by using the ArrayList.Contains Methods. In my case, I had an Array List that contained objects of one of my own classes. .Net Framework doesnt provide such a method to search within the custom objects of particular classes. So I worked out for a search method that can be used effectively to search within the arraylist.