Stringクラスは、エイリアスであるstring型の実体・・・。
Stringとstringが同じかどうかの確認・・・。
また、IndexOfメソッドで指定の文字が何番目にあるかをチェック・・・。
strTypeに"ABC"、strClassに"XYZ"をセット・・・。
(クラスなので最初はnullだが、newがなくても代入だけでインスタンスができるみたい・・・。)
型名の出力・・・。
strType.IndexOfで'B'がstrTypeの何番目かを取得し、int型indexに格納・・・。
indexを出力・・・。
strType: System.String strClass: System.String index = 1 続行するには何かキーを押してください . . .
結果はこうなる・・・。
Sample/dotnet/String/String/src/String_ at master · bg1bgst333/Sample · GitHub