ArcGISCompare.frmMaster.getAttListBoxItem C# (CSharp) Method

getAttListBoxItem() private method

private getAttListBoxItem ( ListBox theList, String AttName, esriFieldType theT, int theL ) : AttributeData
theList ListBox
AttName String
theT esriFieldType
theL int
return AttributeData
        private AttributeData getAttListBoxItem(ListBox theList, String AttName, esriFieldType theT, int theL)
        {
            if (theList.Items.Count > 0)
            {
                for (int i = 0; i < theList.Items.Count; i++)
                    if (theList.Items[i].ToString().ToLower() == AttName.ToLower() + " - " + MiscProcs.UnBuildDataType(theT, theL).ToLower())
                        return (AttributeData)theList.Items[i];
            }
            return null;
        }