claunia / plist-cil

C#/.NET parser for Apple and GnuStep Property List (aka plist), based on Java's dd-plist
Other
54 stars 17 forks source link

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

Closed claunia closed 7 years ago

claunia commented 7 years ago

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.