/// <summary> /// Writes C# code for the type to a file at <paramref name="path"/>. /// </summary> public static void WriteToFile(this ICSharpType type, string path) => File.WriteAllText(path, type.ToSyntax().ToFullString(), Encoding.UTF8);