using Newtonsoft.Json.Linq; using System.Collections.Generic; namespace RedditSharp { public static class Extensions { public static T ValueOrDefault(this IEnumerable enumerable) { if (enumerable == null) return default(T); return enumerable.Value(); } } }