var CanOnlySeeOwnJobs = new GenericSqlParameter<string>("CanOnlySeeOwnJobs", this.CanOnlySeeOwnJobs);
Initially I have copied and edited all these lines to get all the parameters I need, with the default <string>. But CanOnlySeeOwnJobs is a bool, so I need to edit the lines for any non-string parameters.
Is it possible to get the type for < > directly from the variable? I tried and failed with
var CanOnlySeeOwnJobs = new GenericSqlParameter<this.CanOnlySeeOwnJobs.GetType()>("CanOnlySeeOwnJobs", this.CanOnlySeeOwnJobs);
Quote
Operator > cannot be applied to operands of type Type and string.