0

How to set any file comment, author information from c#?

ebattulga
  • 10,774
  • 20
  • 78
  • 116
  • Maybe this related question will be of help: http://stackoverflow.com/questions/220097/read-write-extended-file-properties-c – Dirk Vollmar Sep 28 '09 at 18:49

1 Answers1

3

New Answer

You may want to check out this Stack Overflow question, which details what you're trying to do (I think).

Olde Answer

Use XML Comments.

The list of tags doesn't explicitly include author, but you can add it.

Example:

    /// <summary>
    /// Example Summary of method
    /// </summary>
    /// <author>
    /// George Stocker
    /// </author>
    /// <date>
    /// 9/28/2009
    /// </date>
    static void Authorstuff()
    {
         //method stuff here  
    }
Community
  • 1
  • 1
George Stocker
  • 57,289
  • 29
  • 176
  • 237
  • He's after setting comments on arbitrary files, I believe, not C# source code. No down-vote though, since the question wasn't immediately clear without looking at the tags. – Noldorin Sep 28 '09 at 18:47