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

Version Path
trackler-2.2.1.27 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.26 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.25 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.24 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.23 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.22 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.21 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.20 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.19 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.18 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.17 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.16 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.15 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.14 tracks/csharp/generators/Exercises/ConvertExtensions.cs
trackler-2.2.1.13 tracks/csharp/generators/Exercises/ConvertExtensions.cs