-More BSON UUID bytes as Guid support

This commit is contained in:
James Newton-King
2014-06-14 18:58:24 +12:00
parent 0238b51162
commit d347c87532
3 changed files with 62 additions and 0 deletions
@@ -440,6 +440,12 @@ namespace Newtonsoft.Json.Utilities
return ConvertResult.Success;
}
if (initialValue is Guid && targetType == typeof(byte[]))
{
value = ((Guid)initialValue).ToByteArray();
return ConvertResult.Success;
}
if (initialValue is string)
{
if (targetType == typeof(Guid))