Пример #1
0
        private static void GEDCOMListTest22(GDMIndividualRecord iRec)
        {
            int hash;

            for (int i = 0, num = iRec.Events.Count; i < num; i++)
            {
                GDMCustomEvent evt1 = iRec.Events[i];
                hash = evt1.GetHashCode();
            }
        }
Пример #2
0
        private static void GEDCOMListTest12(GDMIndividualRecord iRec)
        {
            int hash;
            IGEDCOMListEnumerator <GDMCustomEvent> enumer = iRec.Events.GetEnumerator();

            enumer.Reset();
            while (enumer.MoveNext())
            {
                GDMCustomEvent evt1 = enumer.Current;
                hash = evt1.GetHashCode();
            }
        }
Пример #3
0
        public void Test_For()
        {
            var iRec = fContext.Tree.XRefIndex_Find("I1") as GDMIndividualRecord;

            Assert.IsNotNull(iRec);

            int hash;

            for (int i = 0; i < iRec.Events.Count; i++)
            {
                GDMCustomEvent evt1 = iRec.Events[i];
                hash = evt1.GetHashCode();
            }
        }
Пример #4
0
        public void Test_WhileEnum()
        {
            var iRec = fContext.Tree.XRefIndex_Find("I1") as GDMIndividualRecord;

            Assert.IsNotNull(iRec);

            int hash;
            IGDMListEnumerator <GDMCustomEvent> enumer = iRec.Events.GetEnumerator();

            enumer.Reset();
            while (enumer.MoveNext())
            {
                GDMCustomEvent evt1 = enumer.Current;
                hash = evt1.GetHashCode();
            }
        }