Comments (2)
I don't think so. Instead, the methods on Builder should be generic. I don't want to have to create a separate builder for every type I want to build. In my mind, a builder maps to a BuilderConfiguration, but I should be able to build multiple types from the same configuration.
var builder = new Builder(new MyBuilderConfiguration());
var customers = builder.CreateListOfSize<Customer>(5);
var products = builder.CreateListOfSize<Product>(25);
// etc
from nbuilder.
Question: Will it be Builder<T>
in v 5?
from nbuilder.
Related Issues (20)
- Use C#8 and Nullable Reference Types HOT 1
- Public members with private setters are being set. HOT 1
- Add additional address information for USA HOT 15
- Allow nullable value types to be built as null HOT 1
- AppVeyor link in readme is broken
- Rename contributor guide so GitHub detects it
- Display IntelliSense for consumers of NBuilder
- [Discussion] Should RandomGenerator be public or internal? HOT 10
- Change RandomGenerator class from public to internal
- Possibly inconsistent license information for v 6.1.0 HOT 1
- consider removing check for CreateListOfSize(1) HOT 1
- Wiki Home Page has broken links - Lists and Fluent Dates
- Evaluate github actions as opposed to AppVeyor for CI/CD
- Can't disable automatic property naming globablly HOT 1
- Prevent user from using double equals in builder.With calls
- Licensing information mismatch HOT 2
- Init-only property or indexer 'Foo' can only be assigned in an object initializer, or on 'this' or 'base' in an instance constructor or an 'init' accessor.
- 🚀 Release 6.2 discussion HOT 17
- ListBuilder's TheRest() does not work combined with Random() HOT 1
- Add ability to generate IPv6 and MAC addresses
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbuilder.