Build2014.Csharp6.PointJson.ToJson C# (CSharp) Метод

ToJson() публичный статический Метод

public static ToJson ( IEnumerable points ) : Newtonsoft.Json.Linq.JArray
points IEnumerable
Результат Newtonsoft.Json.Linq.JArray
        public static JArray ToJson(IEnumerable<Point> points) =>
            new JArray(
                from p in points
                where p != null
                select new JObject
                {
                    { "x", p.X },
                    { "y", p.Y },
                });