参考
http://dobon.net/vb/dotnet/string/substring.html
test.cs
string text2 = "123456789";
string res = text2.Substring(3);
Console.WriteLine(res);
結果
456789
C++ Builderなどでは SubString(位置, MAXINT)のような記載をしたりしていたが、C#の場合は単純に2つ目のパラメータを省略すればいいようだ。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
参考
http://dobon.net/vb/dotnet/string/substring.html
string text2 = "123456789";
string res = text2.Substring(3);
Console.WriteLine(res);
456789
C++ Builderなどでは SubString(位置, MAXINT)のような記載をしたりしていたが、C#の場合は単純に2つ目のパラメータを省略すればいいようだ。
Register as a new user and use Qiita more conveniently
Go to list of users who liked