System.Xml.Schema.XmlSchemaObjectTable.FindIndexByValue C# (CSharp) Method

FindIndexByValue() private method

private FindIndexByValue ( XmlSchemaObject xso ) : int
xso XmlSchemaObject
return int
        private int FindIndexByValue(XmlSchemaObject xso) {
            int index;
            for(index = 0; index < entries.Count; index++) {
                if((object)entries[index].xso == (object)xso) {
                    return index;
                }    
            }
            return -1;
        }
        /// <include file='doc\XmlSchemaObjectTable.uex' path='docs/doc[@for="XmlSchemaObjectTable.Count"]/*' />