예제 #1
0
 public void Visit(Component1 component1)
 {
     Console.WriteLine($"Let's visit the Component1 and make it say something!");
     component1.SaySomething("Howdy!");
 }
예제 #2
0
 public void Visit(Component1 component1)
 {
     //this is a way to control access to a private var if I wanted to
     Console.WriteLine("I'm visiting component1 and could do something with it if I chose to.");
 }