Then, we use the LINQ Where method to filter the file names based on whether their extensions exist in the extensions array. The Path.GetExtension function is used to extract the extension from each file name, and then we check if the extension exists in the extensions array using the Contains method.
(From f in GetFiles("D:\Desktop\Document\Sections","*.*",SearchOption.AllDirectories)
Let xt = Path.GetExtension(f).toUpper.Replace(".","")
Where {"HTML","CSS"}.Contains(xt)
Select fp = f).toArray
(From f in GetFiles("D:\Desktop\Document\Sections","*.*",SearchOption.AllDirectories)
Let xt = Path.GetExtension(f).toUpper.Replace(".","")
Where arrExtensions.Contains(xt)
Select fp = f).toArray