Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

NSError should be an out parameter in NSJsonSerialization.Deserialize #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ValdarMoridin
Copy link

NSError should be an out parameter on Deserialize (NSData variant)

NSError should be an out parameter here.
@ValdarMoridin ValdarMoridin changed the title Update foundation.cs NSError should be an out parameter in NSJSONSerialization.Deserialize Sep 17, 2014
@ValdarMoridin ValdarMoridin changed the title NSError should be an out parameter in NSJSONSerialization.Deserialize NSError should be an out parameter in NSJsonSerialization.Deserialize Sep 17, 2014
@ValdarMoridin
Copy link
Author

At the moment, the Deserialize function is unusable. If you pass null for the error, it is rejected (no idea why), but because the signature is wrong it will only let you pass an NSError object directly. Trying to call it this way results in a crash.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant