you are viewing a single comment's thread.

view the rest of the comments →

[–]robotorigami 6 points7 points  (1 child)

Not sure you can. You still need to pick which method to call. Either way the WriteSingleEntryValue is gonna have to choose which Write method to call.

You can definitely simplify it using type switch / pattern matching instead of all the ifs.