/// <summary> /// 回收 /// </summary> public void Recycle() { OnBeforeRecycle?.Invoke(this); OnRecycle(); foreach (List <AbsGuideSubCommand_Condition> matchs in mGuideResolveMatchCommandMaping.Values) { foreach (AbsGuideSubCommand_Condition m in matchs) { m.Recycle(); } } mGuideResolveMatchCommandMaping.Clear(); OnAfterRecycle?.Invoke(this); }
/// <summary> /// 回收 /// </summary> public void Recycle() { OnBeforeRecycle?.Invoke(this); OnRecycle(); OnAfterRecycle?.Invoke(this); }