/// <summary> /// Writes C# code for the type to a file in the directory at <paramref name="path"/>. /// </summary> public static void WriteToDirectory(this ICSharpType type, string path) => type.WriteToFile(Path.Combine(path, type.Identifier.Name + ".cs"));