コード例 #1
0
        public static TAGFileConverter ReadTAGFileFullPath(string fileName, bool treatAsJohnDoeMachine = false)
        {
            var converter = new TAGFileConverter();

            using var fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
            converter.ExecuteLegacyTAGFile(fileName, fs, Guid.NewGuid(), treatAsJohnDoeMachine);

            return(converter);
        }
コード例 #2
0
        public static TAGFileConverter ReadTAGFile(string fileName, Guid assetUid, bool isJohnDoe)
        {
            var converter = new TAGFileConverter();

            using var fs = new FileStream(Path.Combine("TestData", "TAGFiles", fileName), FileMode.Open, FileAccess.Read);
            converter.ExecuteLegacyTAGFile(fileName, fs, assetUid, isJohnDoe);

            return(converter);
        }
コード例 #3
0
        public static TAGFileConverter ReadTAGFile(string subFolder, string fileName, bool treatAsJohnDoeMachine = false)
        {
            var converter = new TAGFileConverter();
            var fn        = Path.Combine("TestData", "TAGFiles", subFolder, fileName);

            using var fs = new FileStream(fn, FileMode.Open, FileAccess.Read);
            converter.ExecuteLegacyTAGFile(fileName, fs, Guid.NewGuid(), treatAsJohnDoeMachine);

            return(converter);
        }