Added mapping for System.SByte
ln.build - build0.waldrennach.l--n.de build job pending
Details
ln.build - build0.waldrennach.l--n.de build job pending
Details
parent
a6757e1b63
commit
492e232fa7
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Version>1.0.4</Version>
|
||||
<Version>1.0.5</Version>
|
||||
<Authors>Harald Wolff-Thobaben</Authors>
|
||||
<Company>l--n.de</Company>
|
||||
<Product>ln.json</Product>
|
||||
|
|
|
@ -261,6 +261,11 @@ namespace ln.json.mapping
|
|||
(JSONMapper arg1, object arg2) => new JSONNumber((int)(byte)arg2),
|
||||
(JSONMapper arg1, JSONValue arg2) => Decimal.ToByte(((JSONNumber)arg2).Decimal)
|
||||
));
|
||||
DefaultMapper.Add(new JSONMapping(
|
||||
typeof(sbyte),
|
||||
(JSONMapper arg1, object arg2) => new JSONNumber((int)(sbyte)arg2),
|
||||
(JSONMapper arg1, JSONValue arg2) => Decimal.ToSByte(((JSONNumber)arg2).Decimal)
|
||||
));
|
||||
DefaultMapper.Add(new JSONMapping(
|
||||
typeof(short),
|
||||
(JSONMapper arg1, object arg2) => new JSONNumber((int)(short)arg2),
|
||||
|
|
Loading…
Reference in New Issue