コード例 #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
ファイル: TomlSettings.cs プロジェクト: firleju/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);
            }
        }
コード例 #3
0
ファイル: TomlObject.cs プロジェクト: zanedp/Nett
 public TomlObject AddComment(TomlComment comment)
 {
     this.comments.Add(comment);
     return(this);
 }