2 つの異なる操作を実行する必要があるプロジェクトに取り組んでいます。メインコントローラーメソッドに最終ブロックがあります。
私の質問は、たとえば、最終的に2つ以上持つことができますか?
class test
{
X()
{
try
{
//some operations
}
finally
{
// some essential operation
}
}
//another method
Y()
{
try
{
//some operations
}
finally
{
// some another essential operation
}
}
}
それで、それは可能ですか?