Skip to content

Instantly share code, notes, and snippets.

@luajalla
Created April 8, 2013 20:30
Show Gist options
  • Save luajalla/5340209 to your computer and use it in GitHub Desktop.
Save luajalla/5340209 to your computer and use it in GitHub Desktop.
// [assembly: MonoMac.RequiredFramework("CorePlot.framework/CorePlot")]
var green1 = CPTColor.GreenColor;
// Throws exception:
//[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Cannot cast from source type to destination type.
//at CorePlot.CPTColor.get_GreenColor () <0x00040>
var c = new CPTColor();
var green2 = CPTColor.GreenColor; //ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment