namespace Nodebox.Extensions;
public static class TypeDescriptionExtensions {
extension(TypeDescription typeDescription) {
public object CreateDefault() {
if (typeDescription.IsValueType) {
return typeDescription.Create<object>();
}
return null;
}
}
}