Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
make string のような特定の文字と (y,4) のような長さで文字列を埋めるにはどうすればよいですか? 結果は yyyy です。
適切なコンストラクターを使用するだけです:
string text = new string('y', 4);