示例#1
0
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            #line 7 "E:\BME\MSc\2.felev\onlab2\code-generation\RunTimeGenerator\Animal.tt"

            var creator = new TestDataCreator();
            var world   = creator.CreatWorld();


            #line default
            #line hidden
            this.Write(@"//------------------------------------------------------------------------------
// <auto-generated>
//    This code was generated from a template.
//
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CodeGeneration.GenerationResult.T4.RunTime
{
");

            #line 21 "E:\BME\MSc\2.felev\onlab2\code-generation\RunTimeGenerator\Animal.tt"

            foreach (var animal in world.Animals)
            {
            #line default
            #line hidden
                this.Write("    public class ");

            #line 25 "E:\BME\MSc\2.felev\onlab2\code-generation\RunTimeGenerator\Animal.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(animal.Name));

            #line default
            #line hidden
                this.Write("\r\n    {\r\n    }\r\n");

            #line 28 "E:\BME\MSc\2.felev\onlab2\code-generation\RunTimeGenerator\Animal.tt"
            }


            #line default
            #line hidden
            this.Write("}");
            return(this.GenerationEnvironment.ToString());
        }