rice クラス : ContainsComment(string) メソッド

説明

名前付きコメントが存在するかどうかを返します。

構文

riceInstance.ContainsComment(string commentName)

引数

クラス名前説明
stringcommentNameコメント名。

返り値

クラス説明
bool名前付きコメントが存在するかどうか。

サンプルコード

1:

/**Sample**concat**-----------------------

2:

This is a

3:

sample.

4:

-----------------------------------------------*/

5:

rice rr;

6:

bool exists = rr.ContainsComment("Sample"); // exists is true.

注意

コメント名が存在する場合は true を返します。その他の場合は false を返します。

参照リンク

Copyright © Rice All rights reserved.