using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IPA.Utilities
{
///
/// A class providing various extension methods.
///
public static class Extensions
{
///
/// Gets the default value for a given .
///
/// the to get the default value for
/// the default value of
public static object GetDefault(this Type type)
{
if (type.IsValueType)
{
return Activator.CreateInstance(type);
}
return null;
}
}
}