/// <summary> /// Initializes a new instance of the <see cref="LuaExternalFileCodeMerger"/> class. /// </summary> /// <param name="luaCodeFile">Instance of LuaCodeFile which represents a lua code file on disk.</param> public LuaExternalFileCodeMerger(LuaCodeFile luaCodeFile) { if (luaCodeFile == null) throw new ArgumentNullException("luaCodeFile"); this.luaCodeFile = luaCodeFile; }
/// <summary> /// Initializes a new instance of the <see cref="LuaExternalFileCodeMerger"/> class. /// </summary> /// <param name="luaCodeFile">Instance of LuaCodeFile which represents a lua code file on disk.</param> public LuaExternalFileCodeMerger(LuaCodeFile luaCodeFile) { if (luaCodeFile == null) { throw new ArgumentNullException("luaCodeFile"); } this.luaCodeFile = luaCodeFile; }
/// <summary> /// Initializes a new instance of the <see cref="LuaExternalFileCodeMerger"/> class. /// </summary> /// <param name="parent">Parent ProjectItem of LuaFileCodeModel.</param> public LuaExternalFileCodeMerger(ProjectItem parent) { fileName = parent.get_FileNames(1); luaCodeFile = new LuaCodeFile(fileName); luaCodeFile.Load(); }