空捕获 [英] Empty catch
本文介绍了空捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是CLI相当于空捕获?
即
尝试{}
catch
{}
解决方案
" DaTurk" < mm ****** @ hotmail.comwrote in message
news:11 ********************** @ y2g2000prf .googlegro ups.com ...
什么是空闲捕获的CLI等价物?
ie
试试{}
catch
{}
怎么样:
试试
{
Console :: WriteLine(LHello World);
}
catch(例外^)
{
}
问候,
将
尝试
{
}
抓住(...)
{
}
-
David Anton
www.tangiblesoftwaresolutions.com
即时C#:VB到C#转换器
即时VB:C#到VB转换器
C ++到C#转换器:将C ++转换为C#
即时C ++:转换C#或VB到C ++ / CLI
" DaTurk"写道:
什么是空的捕获量的CLI等价物?
即
试试{}
catch
{}
DaTurk写道:
什么是空仓的CLI等价物?
ie
try { }
catch
{}
允许空捕获的位置在哪里?它不是标准的C ++。你的意思是
catch(...)?
-
SvenC
What''s the CLI equivalent of the empty catch?
i.e.
try{}
catch
{}
解决方案
"DaTurk" <mm******@hotmail.comwrote in message
news:11**********************@y2g2000prf.googlegro ups.com...What''s the CLI equivalent of the empty catch?
i.e.
try{}
catch
{}How about this:
try
{
Console::WriteLine(L"Hello World");
}
catch ( Exception^ )
{
}
Regards,
Will
try
{
}
catch(...)
{
}
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# or VB to C++/CLI
"DaTurk" wrote:
What''s the CLI equivalent of the empty catch?
i.e.
try{}
catch
{}
DaTurk wrote:What''s the CLI equivalent of the empty catch?
i.e.
try{}
catch
{}Where is that empty catch allowed? It is not standard C++. Do you mean
catch(...) ?
--
SvenC
这篇关于空捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文