修复转义符号引起的bug
This commit is contained in:
parent
3dcbe4a0eb
commit
7826b3a3f4
@ -15,11 +15,20 @@ namespace IDTF.Net
|
||||
this.MetaData = new MetaData();
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Name
|
||||
{
|
||||
get => name;
|
||||
set
|
||||
{
|
||||
name = value.Replace("\"","\\\"");
|
||||
}
|
||||
}
|
||||
|
||||
public NodeType Type { get; protected set; }
|
||||
|
||||
private List<Parent> _parents;
|
||||
private string name;
|
||||
|
||||
public List<Parent> Parents
|
||||
{
|
||||
get
|
||||
|
@ -24,7 +24,16 @@ namespace IDTF.Net
|
||||
|
||||
public abstract class Resource
|
||||
{
|
||||
public string Name { get; set; }
|
||||
private string name;
|
||||
|
||||
public string Name
|
||||
{
|
||||
get => name;
|
||||
set
|
||||
{
|
||||
name = value.Replace("\"", "\\\"");
|
||||
}
|
||||
}
|
||||
public abstract ResourceListType ResourceType { get; }
|
||||
public abstract void Export(StreamWriter toStream);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user