Sha256: e5c210c3d9b22df254a0372bceaeaa0ec2025e839a31e9b7ad62b2866841667c
Contents?: true
Size: 368 Bytes
Versions: 15
Compression:
Stored size: 368 Bytes
Contents
using System.Collections.Generic; using Newtonsoft.Json.Linq; namespace Generators.Exercises { public static class ConvertExtensions { public static string ConvertMultiLineString(this object obj) => string.Join("\n", (JArray)obj); public static IEnumerable<T> ConvertToEnumerable<T>(this object obj) => ((JArray) obj).Values<T>(); } }
Version data entries
15 entries across 15 versions & 1 rubygems