erminas.SmartAPI.Utils.XmlUtil.IsAttributeSet C# (CSharp) Method

IsAttributeSet() public static method

public static IsAttributeSet ( this xmlElement, ISessionObject session, string attributeName ) : bool
xmlElement this
session ISessionObject
attributeName string
return bool
        public static bool IsAttributeSet(this XmlElement xmlElement, ISessionObject session, string attributeName)
        {
            var strValue = xmlElement.GetAttributeValue(attributeName);

            return !string.IsNullOrEmpty(strValue) && strValue != session.Session.SessionKey;
        }