LumiSoft.Net.Dns.Client.DnsServerResponse.FilterRecords C# (CSharp) Method

FilterRecords() private method

Filters out specified type of records from answer.
private FilterRecords ( ArrayList answers, Type type ) : ArrayList
answers System.Collections.ArrayList
type System.Type
return System.Collections.ArrayList
        private ArrayList FilterRecords(ArrayList answers,Type type)
        {
            ArrayList aRecords = new ArrayList();
            foreach(object answer in answers){
                if(answer.GetType() == type){
                    aRecords.Add(answer);
                }
            }

            return aRecords;
        }