public static void Serialize(CachedFunctionInformation data, string filePath) { var lines = new List <string>(); if (data != null) { lines.Add(TypeManager.SerializeType(data.ReturnType)); lines.Add(data.PreventCaching.ToString()); lines.AddRange(data.Description.Split(new [] { Environment.NewLine }, StringSplitOptions.None)); } C1File.WriteAllLines(filePath, lines); }