Hi,
I'm coding in C# and have a code snippet as follows;
Code
If load.DescriptorName.Contains("tempLoad") Or
load.DescriptorName.Contains("tempThruThickness") Or
load.DescriptorName.Contains("NodeIDTableTempLoad") Or
load.DescriptorName.Contains("tempThruThicknessTopBottom")Code
{
//do something
}Code
Code
Code
My question is:Code
Code
Rather than having so many 'Or', is there a better way to code this?Code
Code
Sahil
Rajeesh MenothRank #118 · 18.4K reputationPosted Apr 13, 2016, 12:16 AM EDT