Skip to content

Fixed Stream with name 'WordDocument' not found. in .net core #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Common/CommonTranslatorLib/AbstractOpenXmlMapping.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Xml;

//添加注释1
namespace b2xtranslator.CommonTranslatorLib
{
public abstract class AbstractOpenXmlMapping
Expand Down
1 change: 1 addition & 0 deletions Common/CommonTranslatorLib/BinaryDocument.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//添加注释2
namespace b2xtranslator.CommonTranslatorLib
{
public abstract class BinaryDocument : IVisitable
Expand Down
1 change: 1 addition & 0 deletions Common/CommonTranslatorLib/IMapping.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
////添加注释3
namespace b2xtranslator.CommonTranslatorLib
{
public interface IMapping<T> where T : IVisitable
Expand Down
5 changes: 3 additions & 2 deletions Common/StructuredStorage/Common/InternalBitConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace b2xtranslator.StructuredStorage.Common
Expand Down Expand Up @@ -59,9 +60,9 @@ internal string ToString(byte[] value)

var enc = new UnicodeEncoding();
string result = enc.GetString(value);
if (result.Contains("\0"))
if (result.Contains('\0'))
{
result = result.Remove(result.IndexOf("\0"));
result = result.Remove(result.IndexOf('\0'));
}
return result;
}
Expand Down