Ejemplo n.º 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());
 }
Ejemplo n.º 2
0
 public ChatFormatAttribute(ChatFormatType type)
 {
     Type = type;
 }