ToString() публичный Метод

public ToString ( ) : string
Результат string
Пример #1
0
 public void Write(string filePath)
 {
     using (StreamWriter file = new System.IO.StreamWriter(filePath))
     {
         file.WriteLine("#define FILE_VERSION {0}, {1}, {2}, {3}", version.Major, version.Minor, version.Build, version.Revision);
         file.WriteLine("#define FILE_VERSION_STR \"{0}\"", version.ToString());
     }
 }
Пример #2
0
 public void Write(string filePath)
 {
     using (StreamWriter file = new System.IO.StreamWriter(filePath))
     {
         file.WriteLine("using System.Reflection;");
         file.WriteLine("using System.Runtime.CompilerServices;");
         file.WriteLine("using System.Runtime.InteropServices;");
         file.WriteLine();
         file.WriteLine("[assembly: AssemblyFileVersion(\"{0}.{1}.{2}.{3}\")]", version.Major, version.Minor, version.Build, version.Revision);
         file.WriteLine("[assembly: AssemblyInformationalVersion(\"{0}\")]", version.ToString());
     }
 }