Skip to content
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