Beispiel #1
0
 public static int IncrementUsage(this ElementDefinition ed)
 {
     if (ed == null)
     {
         return(0);
     }
     if (ed.HasAnnotation <PropertyUsage>())
     {
         return(ed.Annotation <PropertyUsage>().Increment());
     }
     else
     {
         ed.SetAnnotation(new PropertyUsage()
         {
             UsageCount = 1
         });
         return(1);
     }
 }