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