Mono.MoonError.MoonError C# (CSharp) Method

MoonError() public method

public MoonError ( Exception ex ) : System
ex System.Exception
return System
        public MoonError(Exception ex)
        {
            GCHandle handle = GCHandle.Alloc (ex);
            gchandle_ptr = GCHandle.ToIntPtr (handle);
            number = 9;
            code = 0;
            //message = Value.StringToIntPtr (ex.Message);

            //XamlParseException p = ex as XamlParseException;
            //if (p != null) {
            //	char_position = p.LinePosition;
            //	line_number = p.LineNumber;
            //	code = p.Code;

            //	} else {
                //System.Console.WriteLine (ex);
                char_position = -1;
                line_number = -1;
            //}
        }