Example #1
0
        private static void SetFirstLink(UndoableNawArray list, UndoLink first, bool setCurrentUndoLink = true)
        {
            var firstProp = list.GetType().GetField("_first", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);

            firstProp.SetValue(list, first);

            if (setCurrentUndoLink)
            {
                SetCurrentUndoLink(list, first);
            }
        }
Example #2
0
        private static void SetCurrentUndoLink(UndoableNawArray list, UndoLink currentUndoLink)
        {
            var currentProp = list.GetType().GetField("_currentUndoLink", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);

            currentProp.SetValue(list, currentUndoLink);
        }
Example #3
0
        private static void SetCurrentUndoLink(UndoableNawArray list, UndoLink currentUndoLink)
        {
            var currentProp = list.GetType().GetProperty("Current");

            currentProp.SetValue(list, currentUndoLink);
        }