Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] [Fork] https://stackoverflow.com/questions/62199220/how-to-configure-automapper-using-jsonproperty-attribute by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0)
Newtonsoft.Json version: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
AutoMapper version: AutoMapper, Version=9.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005

[
  {
    "C": "a1",
    "D": "b1",
    "Long": 1,
    "Int": 1,
    "Short": 1
  },
  {
    "C": "a2",
    "D": "b2",
    "Long": 9223372036854775807,
    "Int": 2147483647,
    "Short": 32767
  }
]
Dumping object(System.Collections.Generic.List`1[MyClass])
[
   {
   A            : a1
   B            : b1
   IgnoreMe     : null
   IntNumber    : 1
   LongNumber   : 1
   ShortNumber  : 1
   },
   {
   A            : a2
   B            : b2
   IgnoreMe     : null
   IntNumber    : 2147483647
   LongNumber   : 9223372036854775807
   ShortNumber  : 32767
   }
]
Cached Result
Last Run: 12:03:57 pm
Compile: 0.03s
Execute: 0.37s
Memory: 37.12Mb
CPU: 0.4s