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