隐藏C#代码到VB.Net [英] Covert C# Codes to VB.Net

查看:71
本文介绍了隐藏C#代码到VB.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾尝试使用转换器在互联网上转换此代码,但是当我将转换后的代码放入表单时出现错误...你可以帮我解决这个代码..



I have tried to convert this code on the internet using the converter but when i put the converted code in the form it has an error... can you please help me with this code..

qc.OnQuote += new QuoteEventHandler(qc_OnQuote);

 static void qc_OnQuote(object sender, QuoteEventArgs args)
        {
            QuoteClient qc = (QuoteClient)sender;
            if (s_bQuote)
            {
                Console.WriteLine(args);
              }
        }

推荐答案

确保定义 supportsQuote 代码中的某处。
Make sure you define s_bQuote somewhere in your code.


由于

qc.OnQuote未在第一行定义。
Because of
qc.OnQuote is not defined in first line.


这篇关于隐藏C#代码到VB.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆