vbからc#へのコンバーターアプリのようなものがあることは知っていますが、私が探しているものは少し異なります。この「for」ループを「while」ループに変換するのに役立つコンバーターが必要です。これが私の「整数ファクトリ」のために設計しているコードです(下に向かって「for」ループを見ることができます-これは変換する必要があるものです)。他にもいくつかのループがあります。そのため、このためのアプリ(できればwysiwyg)が必要です。ありがとう!
int IntegerBuilderFactory(string stringtobeconvertedbythefactory)
{
string strtmp = stringtobeconvertedbythefactory;
int customvariabletocontrolthethrottling;
if (strtmp.Length > 0)
{
customvariabletocontrolthethrottling = 1;
}
else
{
customvariabletocontrolthethrottling = 0;
}
for (int integersforconversiontostrings = 0; integersforconversiontostrings < customvariabletocontrolthethrottling; integersforconversiontostrings++)
{
return int.Parse(strtmp);
}
try
{
return 0;
}
catch (Exception ex)
{
// Add logging later, once the "try" is working correctly
return 0;
}
}