Ejemplo n.º 1
0
        public LuaTextWriter(string filename, Encoding encoding, LuaWriterSettings settings)
            : this(new FileStream(filename, FileMode.Create, FileAccess.Write, FileShare.Read), encoding)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            this.settings = settings;
        }
Ejemplo n.º 2
0
        public static LuaWriter Create(string outputFilename, LuaWriterSettings settings)
        {
            if (outputFilename == null)
            {
                throw new ArgumentNullException("outputFilename");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            return(new LuaTextWriter(outputFilename, null, settings));
        }