Open VAllens opened 2 years ago
en-US
Faker<T> : IFakerTInternal, ILocaleAware, IRuleSet<T> where T : class
Why do you want to restrict that a generic type must be a class? In some cases, I use struct...
class
struct
I have considered using non generic Faker. Examples: Using the Faker facade Using DataSets directly
Faker
(Please be complete. Provide all code necessary to run your example in LINQPad.) (The more complete code examples are, the more accurate answers will be.) (https://www.linqpad.net)
Version Information
What locale are you using with Bogus?
en-US
What's the problem?
Why do you want to restrict that a generic type must be a
class
? In some cases, I usestruct
...What possible solutions have you considered?
I have considered using non generic
Faker
. Examples: Using the Faker facade Using DataSets directlyDo you have sample code to show what you're trying to do?
(Please be complete. Provide all code necessary to run your example in LINQPad.) (The more complete code examples are, the more accurate answers will be.) (https://www.linqpad.net)