/// <summary> /// Loads a binary tag structure from a file path. /// </summary> /// <param name="path">The file path of the binary tag structure.</param> /// <returns>Returns a new binary tag structure loaded from an external file path.</returns> public static BinaryTagStructure FromFile(string path) { BinaryTagStructure structure = new BinaryTagStructure(path); structure.Load(); return structure; }
/// <summary> /// Loads the specified binary tag structure and merges its tags with the current property file using the specified merging method. /// </summary> /// <param name="path">The file path of the binary tag structure.</param> /// <param name="method">The method of merging.</param> public void MergeFrom(string path, MergeMethod method) { BinaryTagStructure structure = new BinaryTagStructure(path); structure.Load(); this.Merge(structure, method); }