コード例 #1
0
        public string ToString(AssemblyInfoString str)
        {
            switch (str)
            {
            case AssemblyInfoString.Full:
                return("[" +
                       "Product: " + this.AssemblyProduct + "; " +
                       "Title: " + this.AssemblyTitle + "; " +
                       "Version: " + this.AssemblyVersion + "; " +
                       "Description: " + this.AssemblyDescription + "; " +
                       "Company: " + this.AssemblyCompany + "; " +
                       "Copyright: " + this.AssemblyCopyright +
                       "]");

            case AssemblyInfoString.Normal:
                return("[" +
                       "Title: " + this.AssemblyTitle + "; " +
                       "Version: " + this.AssemblyVersion + "; " +
                       "Description: " + this.AssemblyDescription + "; " +
                       "Copyright: " + this.AssemblyCopyright +
                       "]");

            case AssemblyInfoString.Easy:
                return("Title: " + this.AssemblyTitle);

            case AssemblyInfoString.CommandLineStyle:
                return
                    (this.AssemblyTitle + "\t" +
                     this.AssemblyCopyright + " (" +
                     this.AssemblyVersion + ")\n" +
                     this.AssemblyDescription + "\n");

            default:
                throw new NotImplementedException();
            }
        }
コード例 #2
0
ファイル: AssemblyInfo.cs プロジェクト: CHiiLD/net-toolkit
 public string ToString(AssemblyInfoString str)
 {
     switch (str)
     {
         case AssemblyInfoString.Full:
             return "[" +
                 "Product: " + this.AssemblyProduct + "; " +
                 "Title: " + this.AssemblyTitle + "; " +
                 "Version: " + this.AssemblyVersion + "; " +
                 "Description: " + this.AssemblyDescription + "; " +
                 "Company: " + this.AssemblyCompany + "; " +
                 "Copyright: " + this.AssemblyCopyright +
                 "]";
         case AssemblyInfoString.Normal:
             return "[" +
                 "Title: " + this.AssemblyTitle + "; " +
                 "Version: " + this.AssemblyVersion + "; " +
                 "Description: " + this.AssemblyDescription + "; " +
                 "Copyright: " + this.AssemblyCopyright +
                 "]";
         case AssemblyInfoString.Easy:
             return "Title: " + this.AssemblyTitle;
         case AssemblyInfoString.CommandLineStyle:
             return
                 this.AssemblyTitle + "\t" +
                 this.AssemblyCopyright + " (" +
                 this.AssemblyVersion + ")\n" +
                 this.AssemblyDescription + "\n";
         default:
             throw new NotImplementedException();
     }
 }