ApiCore.CommentsFactory.GetCommentsInfo C# (CSharp) Method

GetCommentsInfo() public static method

public static GetCommentsInfo ( XmlNode node ) : CommentsInfo
node System.Xml.XmlNode
return CommentsInfo
        public static CommentsInfo GetCommentsInfo(XmlNode node)
        {
            if (node != null)
            {
                XmlUtils.UseNode(node);
                CommentsInfo c = new CommentsInfo();
                c.Count = XmlUtils.Int("count");
                c.CanComment = XmlUtils.Bool("can_post");
                return c;
            }
            return null;
        }