Exemplo n.º 1
0
 public bool RegisterAsField(ITagRegistrar registrar)
 => registrar.Required()
 .RegisterILTag(TagId, s => new Payload(TagId, s), o => new T().FromJson(o).AsPayload);
Exemplo n.º 2
0
 public static bool RegisterAsField <TV>(this ITagRegistrar registrar) where TV : VersionedValue <TV>, new()
 => new TV().RegisterAsField(registrar);