예제 #1
0
파일: SymbolTable.cs 프로젝트: aabs/March
 // Wrap the event in a protected virtual method
 // to enable derived classes to raise the event.
 public virtual void RaiseNewArtefactEvent(Artefact artefact)
 {
     Artefacts.Add(artefact.ProperName, artefact);
     // Raise the event by using the () operator.
     NewArtefactEvent(this, new NewArtefactEventArgs(artefact));
 }
예제 #2
0
파일: SymbolTable.cs 프로젝트: aabs/March
 public NewArtefactEventArgs(Artefact artefact)
 {
     this.artefact = artefact;
 }