System.Xml.Linq.Extensions.IsProperty C# (CSharp) Метод

IsProperty() публичный статический Метод

public static IsProperty ( this xElement ) : bool
xElement this
Результат bool
        public static bool IsProperty(this XElement xElement)
        {
            bool ret = false;

            ret = ((xElement.Name == "string" || xElement.Name == "bool" || xElement.Name == "int")) &&
                (xElement.Attributes().Where(a => a.Name == "key").FirstOrDefault() != null);

            return ret;
        }