// This is a comment added using the AddComment method public void MyMethod() { // Some code here }This example adds a comment to the top of a method that describes the purpose of the code within it. AddComment is a built-in method in C# and does not require any external package libraries.