Exemple #1
0
 public Annotated(Annotated <T> a, IEnumerable <Annotation> tags)
 {
     m_value = a.Value;
     m_tags  = a.Tags.Concat(tags.ToArray());
 }
Exemple #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) });
 }
Exemple #3
0
 public static Annotated <T> Annotate <T>(this Annotated <T> self, IEnumerable <Annotation> tags)
 {
     return(new Annotated <T>(self, tags));
 }
Exemple #4
0
 public Annotated(Annotated <T> a)
 {
     m_value = a.Value;
     m_tags  = a.Tags.ToArray();
 }
Exemple #5
0
 public static Annotated <T> Annotate <T>(this Annotated <T> self, string key, object value)
 {
     return(new Annotated <T>(self, key, value));
 }