public override bool Annotation_HasProperty(Annotation @this, string name) { return @this.GetProperty(name) != null; }
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; }
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; }