step-up-labs / firebase-database-dotnet

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

Cannot create FirebaseObject #253

Closed mertozal closed 3 years ago

mertozal commented 3 years ago

When i pull data with OnceSingleAsync it returns T, not FirebaseObject < T > When i trying to convert T to FirebaseObject< T > it never let me do this.

For example:

var expectation = new[] { new FirebaseObject<List<long>>("updates", new List<long>() { 1, 2, 3, 4 }) }; Exception: FirebaseObject does not contain a constructor that takes 2 arguments