Skip to content
nagahoge edited this page Dec 1, 2012 · 2 revisions

_ class is a special class to specify global-like method.

T[] _.Ary<T>(params T[] items)

Create an array from items.

Example

string[] strArray = _.Ary("Peter", "Ashley", "Leon");

If write same logick in C# basic expression.

string[] strArray = new string[] {"Peter", "Ashley", "Leon"};