IsImplementationSpecificAttribute() public static method

public static IsImplementationSpecificAttribute ( string name ) : bool
name string
return bool
Beispiel #1
0
        protected override void LoadExtraData(string name, XmlNode node)
        {
            XmlNode pNode = node.SelectSingleNode("properties");

            if (IsMonoTODOAttribute(name))
            {
                isTodo = true;
                if (pNode.ChildNodes [0].Attributes ["value"] != null)
                {
                    comment = pNode.ChildNodes [0].Attributes ["value"].Value;
                }
                return;
            }

            if (MasterUtils.IsImplementationSpecificAttribute(name))
            {
                return;
            }

            if (pNode != null)
            {
                XMLAttributeProperties p = new XMLAttributeProperties(name);
                p.LoadData(pNode);

                IDictionary <string, XMLAttributeProperties> properties = Properties;
                if (properties.ContainsKey(name))
                {
                    properties [name] = p;
                }
                else
                {
                    properties.Add(name, p);
                }
            }
        }
Beispiel #2
0
        protected override bool CheckIfAdd(string value, XmlNode node)
        {
            if (IsMonoTODOAttribute(value))
            {
                isTodo = true;

                XmlNode pNode = node.SelectSingleNode("properties");
                if (pNode != null && pNode.ChildNodes.Count > 0 && pNode.ChildNodes [0].Attributes ["value"] != null)
                {
                    comment = pNode.ChildNodes [0].Attributes ["value"].Value;
                }
                return(false);
            }

            if (MasterUtils.IsImplementationSpecificAttribute(value))
            {
                return(false);
            }

            return(true);
        }