i have the following code:
foreach (var str in usedCSS)
{
if (CSS.Contains(str))
Response.Write(str);
else
Response.Write("Could not find: " + x + "<br />");
}
which dosent do exactly what i need, and i cant figure out what to do.
usedCSSis aList<string>CSSis also aList<string>
the diffrence between them is that usedCSS contains only the css style name e.g: .CssStyle
and CSS Contains the full style e.g: .CssStyle {font-weight:bold)
what i want is to print out all the actual CSS code that is in usedCSS.
i know i should use IndexOf, but cant figure out how to.
I ask for your kind help.
How about: