Пример #1
0
 /// <summary>
 /// Returns a new <see cref="IChatFormat"/> model for supplied <see cref="ChatFormatType"/> type.
 /// </summary>
 public IChatFormat GetChatFormatModel(ChatFormatType type)
 {
     if (!chatFormatFactories.TryGetValue(type, out ChatFormatFactoryDelegate factory))
     {
         return(null);
     }
     return(factory.Invoke());
 }
Пример #2
0
 public ChatFormatAttribute(ChatFormatType type)
 {
     Type = type;
 }