public GearsContext(ExternalContext Context)
            {
                this.Context = Context;

                this.GoogleGears_Factory_getPermission =
                    Context.ToExternalConverter <string, string, string, string, bool>(
                        "_siteName", "_imageUrl", "extraMessage", "_i",
                        "return window[_i].getPermission(_siteName, _imageUrl, extraMessage);"
                        );


                this.GoogleGears_Factory_getBuildInfo =
                    Context.ToExternalConverter <string, string>("_i", "return window[_i].getBuildInfo();");

                this.GoogleGears_Factory_create =
                    Context.ToExternal <string, string, string, string>("_id", "_version", "_i", "_v", "window[_v] = window[_i].create(_id, _version);");



                this.GoogleGears_Database_execute =
                    Context.ToExternal <string, object[], string, string>("_cmd", "_args", "_i", "_v",
                                                                          "window[_v] = window[_i].execute(_cmd, _args);"
                                                                          );

                this.GoogleGears_ResultSet_isValidRow =
                    Context.ToExternalConverter <string, bool>("_i", "return window[_i].isValidRow();");



                this.GoogleGears_ResultSet_close =
                    Context.ToExternal <string>("_i", "window[_i].close(); delete window[_i];");

                this.GoogleGears_ResultSet_fieldCount =
                    Context.ToExternalConverter <string, int>("_i", "return window[_i].fieldCount();");

                this.GoogleGears_ResultSet_field =
                    Context.ToExternal <int, string, string>("_index", "_i", "_v",
                                                             "window[_v] = window[_i].field(_index);"
                                                             );

                this.GoogleGears_GetToken =
                    Context.ToExternalConverter <string, object>("_i",
                                                                 "return window[_i];"
                                                                 );
            }
            public GearsContext(ExternalContext Context)
            {
                this.Context = Context;

                this.GoogleGears_Factory_getPermission =
                    Context.ToExternalConverter<string, string, string, string, bool>(
                        "_siteName", "_imageUrl", "extraMessage", "_i",
                        "return window[_i].getPermission(_siteName, _imageUrl, extraMessage);"
                    );

                this.GoogleGears_Factory_getBuildInfo =
                    Context.ToExternalConverter<string, string>("_i", "return window[_i].getBuildInfo();");

                this.GoogleGears_Factory_create =
                    Context.ToExternal<string, string, string, string>("_id", "_version", "_i", "_v", "window[_v] = window[_i].create(_id, _version);");

                this.GoogleGears_Database_execute =
                    Context.ToExternal<string, object[], string, string>("_cmd", "_args", "_i", "_v",
                        "window[_v] = window[_i].execute(_cmd, _args);"
                    );

                this.GoogleGears_ResultSet_isValidRow =
                    Context.ToExternalConverter<string, bool>("_i", "return window[_i].isValidRow();");

                this.GoogleGears_ResultSet_close =
                    Context.ToExternal<string>("_i", "window[_i].close(); delete window[_i];");

                this.GoogleGears_ResultSet_fieldCount =
                    Context.ToExternalConverter<string, int>("_i", "return window[_i].fieldCount();");

                this.GoogleGears_ResultSet_field =
                    Context.ToExternal<int, string, string>("_index", "_i", "_v",
                        "window[_v] = window[_i].field(_index);"
                    );

                this.GoogleGears_GetToken =
                    Context.ToExternalConverter<string, object>("_i",
                        "return window[_i];"
                    );
            }