This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static string ToCsv<T>(string separator, IEnumerable<T> objectlist) | |
| { | |
| Type t = typeof(T); | |
| FieldInfo[] fields = t.GetFields(); | |
| string header = String.Join(separator, fields.Select(f => f.Name).ToArray()); | |
| StringBuilder csvdata = new StringBuilder(); | |
| csvdata.AppendLine(header); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AStar.m | |
| // | |
| // Created by Gabriel Hora (@gabriel_hora) on 27/01/11. | |
| // You can copy, change or whatever, just remeber to leave the credits | |
| // | |
| #import "AStar.h" | |
| @implementation PathNode |