1
|
1 // This file (IniCommentLine.cs) is a part of the IBBoard.Ini library and is copyright 2009 IBBoard.
|
|
2 //
|
6
|
3 // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
|
1
|
4
|
|
5 using System;
|
|
6
|
|
7 namespace IBBoard.Ini
|
|
8 {
|
|
9 /// <summary>
|
|
10 /// A line in an IniFile that contains a comment
|
|
11 /// </summary>
|
|
12 public class IniCommentLine : IIniLine
|
|
13 {
|
|
14 private string comment;
|
|
15
|
|
16 public IniCommentLine(string comment)
|
|
17 {
|
|
18 this.comment = comment.TrimStart(';');
|
|
19 }
|
|
20
|
|
21 //// <value>
|
|
22 /// Gets the content of the comment
|
|
23 /// </value>
|
|
24 public string Comment
|
|
25 {
|
|
26 get
|
|
27 {
|
|
28 return comment;
|
|
29 }
|
|
30 }
|
|
31
|
|
32 public override string ToString()
|
|
33 {
|
|
34 return ";" + Comment;
|
|
35 }
|
|
36
|
|
37 }
|
|
38 }
|