step-up-labs / firebase-database-dotnet

C# library for Firebase Realtime Database.
MIT License
670 stars 170 forks source link

RealtimeDatabase for primitive types #139

Closed cabauman closed 5 years ago

cabauman commented 6 years ago

Do you have a recommended way to handle a RealtimeDatabase for primitive types, such as bool, int, float?

.AsRealtimeDatabase doesn't work because of the class constraint. Is boxing it up in an object and casting the only way?

By the way, I love your work in these Firebase libraries. Thanks a lot for sharing.

mertozal commented 4 years ago

@cabauman did you find a solution ?

Edit:Anyway i created a class for it