public void Visit(VisitContext <Container, int> context, ref Container container, ref int value)
 {
     for (var i = 0; i < m_Repeat; ++i)
     {
         if (m_WithAdapters)
         {
             context.ContinueVisitation(ref container, ref value);
         }
         else
         {
             context.ContinueVisitationWithoutAdapters(ref container, ref value);
         }
     }
 }
            public void Visit(VisitContext <Container, int> context, ref Container container, ref int value)
            {
                Visitor.Builder.Append(value);
                switch (Status)
                {
                case VisitStatus.Stop:
                    break;

                case VisitStatus.Unhandled:
                    context.ContinueVisitation(ref container, ref value);
                    break;

                case VisitStatus.Handled:
                    context.ContinueVisitationWithoutAdapters(ref container, ref value);
                    break;
                }
            }
예제 #3
0
 public void Visit <TContainer>(VisitContext <TContainer> context, ref TContainer container, IBase value)
 {
     Debug.Log($"Visit {value.GetType()}");
     context.ContinueVisitationWithoutAdapters(ref container);
 }
 public void Visit(VisitContext <Container, int> context, ref Container container, ref int value)
 {
     Visitor.Builder.Append("This sentence: \"");
     context.ContinueVisitationWithoutAdapters(ref container, ref value);
     Visitor.Builder.Append("\" is simply not true");
 }