Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brendanzagaeski/8347717 to your computer and use it in GitHub Desktop.
Save brendanzagaeski/8347717 to your computer and use it in GitHub Desktop.
Example of a generated Task return value for `[Async (ResultTypeName = "FetchRepositoriesWithCompletionArgs")]`, using `Action<bool, NSError, NSArray>` as the delegate type. This results in generic return value names like "Arg1".
public class FetchRepositoriesWithCompletionArgs {
public bool Arg1 { get; set; }
public NSError Arg2 { get; set; }
public NSArray Arg3 { get; set; }
public FetchRepositoriesWithCompletionArgs (bool arg1, NSError arg2, NSArray arg3) {
this.Arg1 = arg1;
this.Arg2 = arg2;
this.Arg3 = arg3;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment