Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Support KnownTypeAttribute.MethodName on UWP. (#19617)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmao committed May 11, 2017
1 parent 7e72a82 commit 3f50597
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -80,6 +80,12 @@ internal static DataContract GetDataContractFromGeneratedAssembly(Type type)
}
}
}

if (dataContract is InvalidDataContract && DataContractSerializer.Option == SerializationOption.ReflectionAsBackup)
{
return null;
}

return dataContract;
#else
return null;
Expand Down

0 comments on commit 3f50597

Please sign in to comment.