mercredi 21 août 2019

linq: how to check if the value of one attribute exists

if statement to check the value of an attribute doesn't work.

if (element.Elements(ns + "list").Where(x => x.Attribute("name").Value == "myProject") != null)

Is there other way to check if the value of an attribute exists?

Aucun commentaire:

Enregistrer un commentaire