コード例 #1
0
 /// <summary>
 /// Does the code generation.
 /// </summary>
 /// <param name="inputFileName">The name of the input file.</param>
 /// <param name="inputFileContent">unused</param>
 /// <returns>The generated code bytes.</returns>
 protected override byte[] GenerateCode(string inputFileName, string inputFileContent)
 {
     CompositeClassGenerator generator =
         new CompositeClassGenerator(this, GetCodeWriter(), inputFileName);
     string code = generator.GetCode();
     return Encoding.ASCII.GetBytes(code);
 }
コード例 #2
0
        /// <summary>
        /// Does the code generation.
        /// </summary>
        /// <param name="inputFileName">The name of the input file.</param>
        /// <param name="inputFileContent">unused</param>
        /// <returns>The generated code bytes.</returns>
        protected override byte[] GenerateCode(string inputFileName, string inputFileContent)
        {
            CompositeClassGenerator generator =
                new CompositeClassGenerator(this, GetCodeWriter(), inputFileName);
            string code = generator.GetCode();

            return(Encoding.ASCII.GetBytes(code));
        }