Esempio n. 1
0
        public byte[] GenerateCode(XsdClassesGenerator generator, string fileName, string fileContents)
        {
            string code = "";

            try
            {
                code = generator.GenerateCodeFromXsd(fileContents, this.FileNamespace);
            }
            catch (Exception e)
            {
                code = "***ERROR***\n" + e.Message;
            }

            return(System.Text.Encoding.ASCII.GetBytes(code));
        }
        public byte[] GenerateCode(XsdClassesGenerator generator, string fileName, string fileContents)
        {
            string code = "";
            try
            {

                code = generator.GenerateCodeFromXsd(fileContents, this.FileNamespace);
            }
            catch (Exception e)
            {
                code = "***ERROR***\n" + e.Message;
            }

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