Julian Gonzalez

Generation

generate functionThu, 30 Mar 2023

How to return a generic object in c# create objects

public static T Create<T>() where T : new() { return new T(); }

Questions about programming?Chat with your personal AI assistant