FlickrNet.PhotoComments.GetComments C# (CSharp) Method

GetComments() static private method

static private GetComments ( XmlNode node ) : FlickrNet.Comment[]
node System.Xml.XmlNode
return FlickrNet.Comment[]
        internal static Comment[] GetComments(XmlNode node)
        {
            if( node.Attributes["photo_id"] != null )
                _photoId = node.Attributes["photo_id"].Value;
            XmlNodeList nodes = node.SelectNodes("comment");
            _comments = new Comment[nodes.Count];

            for(int i = 0; i < _comments.Length; i++)
            {
                _comments[i] = new Comment(_photoId, nodes[i]);
            }

            return _comments;
        }
PhotoComments