- Timestamp:
- 06/26/08 11:20:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ticket175Branch/HeuristicLab.Functions/BakedFunctionTree.cs
r324 r339 286 286 if(f.data.Count > 0) { 287 287 XmlAttribute dataAttribute = document.CreateAttribute("Data"); 288 dataAttribute.Value = GetString <double>(f.data);288 dataAttribute.Value = GetString(f.data); 289 289 entryNode.Attributes.Append(dataAttribute); 290 290 } … … 311 311 } 312 312 313 private string GetString <T>(IEnumerable<T> xs) where T : IConvertible{313 private string GetString(IEnumerable<double> xs) { 314 314 StringBuilder builder = new StringBuilder(); 315 foreach( Tx in xs) {316 builder.Append(x.ToString( CultureInfo.InvariantCulture) + "; ");315 foreach(double x in xs) { 316 builder.Append(x.ToString("r", CultureInfo.InvariantCulture) + "; "); 317 317 } 318 318 if(builder.Length > 0) builder.Remove(builder.Length - 2, 2);
Note: See TracChangeset
for help on using the changeset viewer.