Hi,
Is there an elegant way maybe LINQ to return True if all string element in a List is equal lenght? Or has a substring?
I was doing this way:
bool sha_ready = false;
while (!sha_ready)
{
foreach (var item in Directory.GetFiles(destination_path, "*.wav"))
{
if (!Path.GetFileName(item).ToLower().Contains("sha"))
{
sha_ready = false;
}
else
{
}
}
}
while (!sha_ready)
{
foreach (var item in Directory.GetFiles(destination_path, "*.wav"))
{
if (!Path.GetFileName(item).ToLower().Contains("sha"))
{
sha_ready = false;
}
else
{
}
}
}
Thanks,
Zolee


Laxmidhar SahooRank #383 · 6.6K reputationPosted Jun 26, 2020, 12:36 AM EDT
Zoltan Kerenyi92 reputationPosted Jun 26, 2020, 6:23 AM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jun 27, 2020, 1:49 AM EDT