I like this one better, there is 1 less dictionary lookup.
I tried to use a struct ("stack" allocated), but C# does not allow to modify struct in-place in dictionary, so modifying refcount in a struct requires 2 lookups. Compared with a single object dereference in this MR, I think object dereference is the better option?
Alternative to https://github.com/NordSecurity/uniffi-bindgen-cs/pull/88.
I like this one better, there is 1 less dictionary lookup.
I tried to use a struct ("stack" allocated), but C# does not allow to modify struct in-place in dictionary, so modifying refcount in a struct requires 2 lookups. Compared with a single object dereference in this MR, I think object dereference is the better option?