Ejemplo n.º 1
0
 internal TomlCommentLocation GetCommentLocation(TomlComment c)
 {
     switch (c.Location)
     {
         case CommentLocation.Append: return TomlCommentLocation.Append;
         case CommentLocation.Prepend: return TomlCommentLocation.Prepend;
         default: return this.defaultCommentLocation;
     }
 }
Ejemplo n.º 2
0
        internal TomlCommentLocation GetCommentLocation(TomlComment c)
        {
            switch (c.Location)
            {
            case CommentLocation.Append: return(TomlCommentLocation.Append);

            case CommentLocation.Prepend: return(TomlCommentLocation.Prepend);

            default: return(this.defaultCommentLocation);
            }
        }
Ejemplo n.º 3
0
 public TomlObject AddComment(TomlComment comment)
 {
     this.comments.Add(comment);
     return(this);
 }