Exemplo n.º 1
0
 public Annotated(Annotated <T> a, IEnumerable <Annotation> tags)
 {
     m_value = a.Value;
     m_tags  = a.Tags.Concat(tags.ToArray());
 }
Exemplo n.º 2
0
 public Annotated(Annotated <T> a, string tagKey, object tagValue)
 {
     m_value = a.Value;
     m_tags  = a.Tags.Concat(new[] { new Annotation(tagKey, tagValue) });
 }
Exemplo n.º 3
0
 public static Annotated <T> Annotate <T>(this Annotated <T> self, IEnumerable <Annotation> tags)
 {
     return(new Annotated <T>(self, tags));
 }
Exemplo n.º 4
0
 public Annotated(Annotated <T> a)
 {
     m_value = a.Value;
     m_tags  = a.Tags.ToArray();
 }
Exemplo n.º 5
0
 public static Annotated <T> Annotate <T>(this Annotated <T> self, string key, object value)
 {
     return(new Annotated <T>(self, key, value));
 }