예제 #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);
 }