Add explicit/implicit casting operators for NSNumber, NSString, NSUID. #13

Closed
opened 2026-01-30 21:26:39 +00:00 by claunia · 0 comments
Owner

Originally created by @claunia on GitHub (May 20, 2017).

C# allows any class to offer casting in the following ways:

NSNumber nsN = new NSNumber(15);
int myN = nsN; // Would be 15

NSString myS = "foo";
string myStr = (string)MyS; // Would be "foo"

This should be implemented.

Originally created by @claunia on GitHub (May 20, 2017). C# allows any class to offer casting in the following ways: ``` NSNumber nsN = new NSNumber(15); int myN = nsN; // Would be 15 NSString myS = "foo"; string myStr = (string)MyS; // Would be "foo" ``` This should be implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: claunia/plist-cil#13