Ejemplo n.º 1
0
 /// <summary>
 /// Sets metainfo about the xml file where meta info is saved in
 /// </summary>
 private static void Initialize()
 {
     if (!_initialized)
     {
         MetaInfo.SetAttribute(typeof(EntryList), "XmlItemType", "HydroNumerics.OpenMI.Sdk.DevelopmentSupport.MetaInfoEntry");
         MetaInfo.SetAttribute(typeof(MetaInfoEntry), "Properties", "XmlItemType", "HydroNumerics.OpenMI.Sdk.DevelopmentSupport.MetaInfoClass");
         MetaInfo.SetAttribute(typeof(MetaInfoClass), "ObjectAggregate", "HydroNumerics.OpenMI.Sdk.DevelopmentSupport.MetaInfoClassAggregate");
         _initialized = true;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Stores information about a class
 /// </summary>
 /// <param name="target">The class about which information is stored (usually as class type or string)</param>
 /// <param name="subject">The type of information (e.g. how the class is named in an xml file)</param>
 /// <param name="targetValue">The actual value</param>
 public static void SetAttribute(object target, string subject, object targetValue)
 {
     MetaInfo.SetAttribute(target, null, subject, targetValue);
 }