示例#1
0
文件: TomlConfig.cs 项目: paiden/Nett
 internal TomlCommentLocation GetCommentLocation(TomlComment c)
 {
     switch (c.Location)
     {
         case CommentLocation.Append: return TomlCommentLocation.Append;
         case CommentLocation.Prepend: return TomlCommentLocation.Prepend;
         default: return this.defaultCommentLocation;
     }
 }
示例#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);
            }
        }
示例#3
0
文件: TomlObject.cs 项目: zanedp/Nett
 public TomlObject AddComment(TomlComment comment)
 {
     this.comments.Add(comment);
     return(this);
 }