x) Fix xml to grab from actual value if v= doesnt exist
This commit is contained in:
parent
5a6f1220e6
commit
f4a3410e89
@ -217,9 +217,18 @@ namespace lib
|
|||||||
|
|
||||||
private object DeserializeConcrete( XmlElement elem, Type type )
|
private object DeserializeConcrete( XmlElement elem, Type type )
|
||||||
{
|
{
|
||||||
string val = elem.GetAttribute("v");
|
string val = "";
|
||||||
|
|
||||||
if( !type.IsEnum )
|
if( elem.HasAttribute("v") )
|
||||||
|
{
|
||||||
|
val = elem.GetAttribute("v");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
val = elem.InnerText;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !type.IsEnum )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user