//------------------------------------------------------------ // EventWithType.Convert // /// <summary> /// If swt is EventWithType, convert to EventWithType and return it. /// Otherwise, create a EventWithType instance by swt and return it. /// </summary> /// <param name="swt"></param> /// <returns></returns> //------------------------------------------------------------ static internal EventWithType Convert(SymWithType swt) { EventWithType ewt = swt as EventWithType; if (ewt != null) { return(ewt); } return(new EventWithType(swt)); }
//------------------------------------------------------------ // EventWithType.Set (2) // /// <summary></summary> /// <param name="ewt"></param> //------------------------------------------------------------ internal void Set(EventWithType ewt) { if (ewt != null) { this.Set(ewt.EventSym, ewt.AggTypeSym); } else { this.Set(null, null); } }