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.
是否可以像在 C# 中那样在新行中创建方法链接?
var foo = bar .MethodOne() .MethodTwo()
() 中的空格不重要,因此以下是合法的 boo 代码:
a = (bar .Foo() .Bar())
您应该使用“\”符号。见样本:
a = 123 \ .ToString() \ .Length print a