ReferenceComment.TryCreate Method

Namespace
Kampute.DocToolkit.XmlDoc.Comments
Assembly
  • Kampute.DocToolkit.dll

Definition

Attempts to create a new instance of the ReferenceComment class from the specified XML element.
public static bool TryCreate(XElement element, [NotNullWhen(true)] out ReferenceComment comment)

Parameters

element XElement
The XML element containing the code reference and description.
comment ReferenceComment
When this method returns, contains the created reference comment if successful; otherwise, null.

Returns

bool
true if a reference comment was successfully created; otherwise, false.