/// <summary>Diverts the named group and processes it with the given handler.</summary> public void Divert(string groupName, GroupResolveEvent handler) { if (Diverts == null) { Diverts = new Dictionary <string, GroupResolveEvent>(); } Diverts[groupName] = handler; }
/// <summary>Sets the group resolver to use when resolving a group name from a variable /// that isn't found in the languages groups. E.g. &cdn.text; can be handled in custom ways here.</summary> /// <param name="resolver">The resolver to use.</param> public static void SetGroupResolver(string group, GroupResolveEvent resolver) { Variables.Divert(group, resolver); }