/// <summary> /// Get meta data from meta file /// </summary> /// <param name="meta"></param> /// <returns></returns> public static bool GetMeta(Meta meta) { StringCollection aFields = new StringCollection(); aFields.Clear(); aFields.Add("Type"); aFields.Add("Code"); aFields.Add("Name"); aFields.Add("Description"); aFields.Add("Category"); aFields.Add("Parameters"); aFields.Add("ParameterPrecision"); aFields.Add("ParameterDescriptions"); aFields.Add("URL"); aFields.Add("Authors"); aFields.Add("Version"); common.configuration.GetConfiguration(Data.sysXmlDocument, "STRATEGY", meta.ClassType.Name, aFields, false); meta.Type = AppTypes.Text2StrategyType(aFields[0]); meta.Code = aFields[1]; meta.Name = aFields[2]; meta.Description = aFields[3]; meta.Category = aFields[4]; meta.ParameterList = String2ParameterList(aFields[5]); int num = 0; int.TryParse(aFields[6], out num); meta.ParameterPrecision = num; meta.ParameterDescriptions = common.system.String2List(aFields[7]); meta.URL = aFields[8]; meta.Authors = aFields[9]; meta.Version = aFields[10]; return(true); }