示例#1
0
 private void InitializeCallbacks()
 {
     if (eventCallbacks == null)
     {
         eventCallbacks    = new Delegate[6];
         eventCallbacks[0] = new NotifyEventCallback(this.NotifyEvent);
         eventCallbacks[1] = new BeginChildrenCallback(this.BeginChildren);
         eventCallbacks[2] = new EndChildrenCallback(this.EndChildren);
         eventCallbacks[3] = new ErrorCallback(this.Error);
         eventCallbacks[4] = new CreateNodeCallback(this.CreateNode);
         eventCallbacks[5] = new CreateAttributeCallback(this.CreateAttribute);
     }
 }
示例#2
0
 private void InitializeCallbacks()
 {
     if (eventCallbacks == null)
     {
         eventCallbacks = new Delegate[6];
         eventCallbacks[0] = new NotifyEventCallback(this.NotifyEvent);
         eventCallbacks[1] = new BeginChildrenCallback(this.BeginChildren);
         eventCallbacks[2] = new EndChildrenCallback(this.EndChildren);
         eventCallbacks[3] = new ErrorCallback(this.Error);
         eventCallbacks[4] = new CreateNodeCallback(this.CreateNode);
         eventCallbacks[5] = new CreateAttributeCallback(this.CreateAttribute);
     }
 }