FairyGUI.Utils.XML.HasAttribute C# (CSharp) 메소드

HasAttribute() 공개 메소드

public HasAttribute ( string attrName ) : bool
attrName string
리턴 bool
        public bool HasAttribute(string attrName)
        {
            if (_attributes == null)
                return false;

            return _attributes.ContainsKey(attrName);
        }

Usage Example

예제 #1
0
 static public int HasAttribute(IntPtr l)
 {
     try {
         FairyGUI.Utils.XML self = (FairyGUI.Utils.XML)checkSelf(l);
         System.String      a1;
         checkType(l, 2, out a1);
         var ret = self.HasAttribute(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }