示例#1
0
 private void Brain_OnLoggedEvent(ILogEntry newEntry)
 {
     // According to Visitor design pattern, we use double dispatch
     //  and ask newEntry to call the visitor.
     newEntry.Accept(visitor);
 }