} // Equals

        private bool IsEqual(object obj)
        {
            var compare = obj as RtfDocumentProperty; // guaranteed to be non-null

            return
                (compare != null &&
                 PropertyKindCode == compare.PropertyKindCode &&
                 PropertyKind == compare.PropertyKind &&
                 Name.Equals(compare.Name) &&
                 CompareTool.AreEqual(StaticValue, compare.StaticValue) &&
                 CompareTool.AreEqual(LinkValue, compare.LinkValue));
        } // IsEqual
Beispiel #2
0
        }         // Equals

        // ----------------------------------------------------------------------
        private bool IsEqual(object obj)
        {
            RtfDocumentProperty compare = obj as RtfDocumentProperty;             // guaranteed to be non-null

            return
                (compare != null &&
                 propertyKindCode == compare.propertyKindCode &&
                 propertyKind == compare.propertyKind &&
                 name.Equals(compare.name) &&
                 CompareTool.AreEqual(staticValue, compare.staticValue) &&
                 CompareTool.AreEqual(linkValue, compare.linkValue));
        }         // IsEqual
Beispiel #3
0
        }         // CopyTo

        // ----------------------------------------------------------------------
        public int IndexOf(string test)
        {
            int count = InnerList.Count;

            for (int i = 0; i < count; i++)
            {
                if (CompareTool.AreEqual(test, InnerList[i]))
                {
                    return(i);
                }
            }
            return(-1);
        }         // IndexOf