Skip to content

Commit

Permalink
Add case for NSObject to ToNSObject extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasBuchholz committed Apr 4, 2023
1 parent deb4b09 commit a4badb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Firestore/Platforms/iOS/Extensions/NSObjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ private static Type GetGenericListType(Type targetType)
public static NSObject ToNSObject(this object @this)
{
switch(@this) {
case NSObject x:
return x;
case string x:
return new NSString(x);
case int x:
Expand Down

0 comments on commit a4badb6

Please sign in to comment.