Beispiel #1
0
 // <summary>
 // this is a deep clone
 //</summary>
 internal ResXDataNode DeepClone()
 {
     return(new ResXDataNode
     {
         // nodeinfo is just made up of immutable objects, we don't need to clone it
         nodeInfo = nodeInfo?.Clone(),
         name = name,
         comment = comment,
         typeName = typeName,
         fileRefFullPath = fileRefFullPath,
         fileRefType = fileRefType,
         fileRefTextEncoding = fileRefTextEncoding,
         // we don't clone the value, because we don't know how
         value = value,
         fileRef = fileRef?.Clone(),
         typeNameConverter = typeNameConverter
     });
 }
Beispiel #2
0
 internal ResXDataNode DeepClone()
 {
     return(new ResXDataNode
     {
         // nodeinfo is just made up of immutable objects, we don't need to clone it
         _nodeInfo = _nodeInfo?.Clone(),
         _name = _name,
         _comment = _comment,
         _typeName = _typeName,
         _fileRefFullPath = _fileRefFullPath,
         _fileRefType = _fileRefType,
         _fileRefTextEncoding = _fileRefTextEncoding,
         // we don't clone the value, because we don't know how
         _value = _value,
         _fileRef = _fileRef?.Clone(),
         _typeNameConverter = _typeNameConverter
     });
 }