/// <summary> /// /// </summary> /// <param name="provider"></param> public static void Register(ITagFormatProvider provider) { Guard.NotNull(provider, "provider"); var fmts = provider.SupportColon ? colonFormatters : formatters; if (fmts.ContainsKey(provider.Tag)) fmts.Remove(provider.Tag); fmts.Add(provider.Tag, provider); }
/// <summary> /// /// </summary> /// <param name="provider"></param> public static void Register(ITagFormatProvider provider) { Guard.NotNull(provider, "provider"); var fmts = provider.SupportColon ? colonFormatters : formatters; if (fmts.ContainsKey(provider.Tag)) { fmts.Remove(provider.Tag); } fmts.Add(provider.Tag, provider); }