Skip to content

Instantly share code, notes, and snippets.

@mikebluestein
Created July 15, 2012 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikebluestein/3118303 to your computer and use it in GitHub Desktop.
Save mikebluestein/3118303 to your computer and use it in GitHub Desktop.
public NSArray ToNSArray (int[] array)
{
NSArray nsArray = null;
var objects = Array.ConvertAll (array, i => (object)i);
if (objects != null) {
nsArray = NSArray.FromObjects (objects);
}
return nsArray;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment