Reputation: 16854
Its possible to create this in f#?
public TTarget Map<TTarget>(string SQL) where TTarget : new()
{
}
Upvotes: 2
Views: 205
Reputation: 47904
Actually, the constraint is unnecessary. This works just as well.
let map (sql: string) = new 'T()
Upvotes: 5