Files
Gardient 9583c1afb2 First actual commit
added sources to repository
2015-08-28 21:49:50 +03:00

16 lines
351 B
C#

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