I need to check if a certain filename contains the user speficied substring, but I can't seem to get the syntax correct (I'm new to C#). I am expected to use the asterisks, but I'm unsure how it should be formatted (see my code below).
if (fileInfo[i].Name == ("{0} * . * ", partialName) || fileInfo[i].Name == (" * {0}. * ", partialName))