Comment.Collect Method
- Namespace
- Kampute.DocToolkit.XmlDoc.Comments
- Assembly
- Kampute.DocToolkit.dll
Definition
Collects all comments that are associated with a name from the specified XML elements.
public static Dictionary<string, Comment> Collect(IEnumerable<XElement> elements)Parameters
elementsIEnumerable<XElement>- The XML elements to collect the comments from.
Returns
- Dictionary<string, Comment>
- A dictionary of named comments.
Exceptions
- ArgumentNullException
- Thrown when
elementsisnull.
