Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
Object.Convert<TTarget> extension method by koszeggy
String => Int32: 123 => 123
ConsoleColor => Single: Blue => 9
Int32 => ConsoleColor: 13 => Magenta
String => Guid: AADC78003DAB4906826EFD8B2D5CF33D => aadc7800-3dab-4906-826e-fd8b2d5cf33d
Int64 => IntPtr: 42 => 42
Char => IntPtr: x => 120
List`1[Int32] => Boolean[]: 1, 0, 0, 1 => True, False, False, True
String => List`1[Int32]: Blah => 66, 108, 97, 104
Char[] => String: h, e, l, l, o => hello
Decimal[] => ReadOnlyCollection`1[String]: 1.0, 2, -1 => 1.0, 2, -1
HashSet`1[Int32] => ArrayList: 1, 2, 3 => 1, 2, 3
Hashtable => Dictionary`2[ConsoleColor,String]: [Black, x], [1, One] => [Black, x], [DarkBlue, One]
Cached Result
Last Run: 5:23:00 pm
Compile: 0.893s
Execute: 0.2s
Memory: 13.59Mb
CPU: 1.093s