If load.DescriptorName.Contains("tempLoad") Or load.DescriptorName.Contains("tempThruThickness") Or load.DescriptorName.Contains("NodeIDTableTempLoad") Or load.DescriptorName.Contains("tempThruThicknessTopBottom") {//do something }
If load.DescriptorName.Contains("tempLoad") Or load.DescriptorName.Contains("tempThruThickness") Or load.DescriptorName.Contains("NodeIDTableTempLoad") Or load.DescriptorName.Contains("tempThruThicknessTopBottom")
{//do something }
My question is:
Rather than having so many 'Or', is there a better way to code this?
Sahil