Hi, I am just wondering whether it is possible to have something like that, I mean to initialize object that I want to pass as an argument without writing it on special line:
String a="test";
a.TrimStart(new char [] X=['a'])
Hi, I am just wondering whether it is possible to have something like that, I mean to initialize object that I want to pass as an argument without writing it on special line:
String a="test";
a.TrimStart(new char [] X=['a'])
a.TrimStart(new char[] { 'a' });
You can even leave out the "char":
a.TrimStart(new[] { 'a' });
yes you can, but you can't assign name to it. Try:
a.TrimStart(new char[] {'a'})