I am working on converting an extension method I have in C# into VB.Net, but can't figure out the correct way to set a constraint on the output.
My current C# code is working on a Dictionary and looks as follows:
public static TValue GetOrCreate<TKey, TValue>(this IDictionary<TKey, TValue> dict, TKey key)
where TValue : new()
{ }
I've seen questions explaining how to set the constraint on the inputs such as here, but I can't seem to find one explaining how to convert the output constraint of where TValue : new()
I'm sure it's easy, but I've grown a bit rusty with VB and hoping someone here knows it off the top of their head.