/// <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", "Oatc.OpenMI.Sdk.DevelopmentSupport.MetaInfoEntry"); MetaInfo.SetAttribute(typeof(MetaInfoEntry), "Properties", "XmlItemType", "Oatc.OpenMI.Sdk.DevelopmentSupport.MetaInfoClass"); MetaInfo.SetAttribute(typeof(MetaInfoClass), "ObjectAggregate", "Oatc.OpenMI.Sdk.DevelopmentSupport.MetaInfoClassAggregate"); _initialized = true; } }
/// <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); }