CBOR icon indicating copy to clipboard operation
CBOR copied to clipboard

Typed CBORObject.FromInt etc.

Open charlesroddie opened this issue 4 years ago • 0 comments

Currently to convert a primitive to CBOR, CBORObject.FromObject is used which has a lot of overloads. This gives a lack of safety, as overload resolution is affected by op_Implicit, and also has an obj overload which makes it extra unsafe.

Instead there should be added FromInt, FromInt64, FromChar, FromArray, FromGuid etc..

charlesroddie avatar Nov 09 '21 13:11 charlesroddie