Exemplo n.º 1
0
 /// <summary>
 /// Converts <paramref name="id"/> to a <see cref="CommandInfo"/>
 /// </summary>
 /// <param name="id">ID</param>
 /// <param name="arguments">Arguments or null</param>
 /// <returns></returns>
 public static CommandInfo ToCommandInfo(this TextReferenceIds id, object arguments) => new CommandInfo(CommandConstants.TextReferenceGroup, (int)id, arguments);
Exemplo n.º 2
0
 /// <summary>
 /// Converts <paramref name="id"/> to a <see cref="CommandInfo"/>
 /// </summary>
 /// <param name="id">ID</param>
 /// <returns></returns>
 public static CommandInfo ToCommandInfo(this TextReferenceIds id) => new CommandInfo(CommandConstants.TextReferenceGroup, (int)id);