예제 #1
0
 public override bool Annotation_HasProperty(Annotation @this, string name)
 {
     return @this.GetProperty(name) != null;
 }
예제 #2
0
 public override AnnotationProperty Annotation_SetPropertyValue(Annotation @this, string name, object value)
 {
     if (@this == null) return null;
     AnnotationProperty prop = @this.GetProperty(name);
     if (prop == null)
     {
         prop = SoalFactory.Instance.CreateAnnotationProperty();
         prop.Name = name;
         @this.Properties.Add(prop);
     }
     prop.Value = value;
     return prop;
 }
예제 #3
0
 public override object Annotation_GetPropertyValue(Annotation @this, string name)
 {
     if (@this == null) return null;
     AnnotationProperty prop = @this.GetProperty(name);
     if (prop != null)
     {
         return prop.Value;
     }
     return null;
 }