happy-geeks_geeks-core-library/GeeksCoreLibrary/Core/Extensions/TypeExtensions.cs
using System;

namespace GeeksCoreLibrary.Core.Extensions
{
    public static class TypeExtensions
    {
        public static object GetDefaultValue(this Type type)
        {
            return type.IsValueType
                ? Activator.CreateInstance(type)
                : null;
        }
    }
}
