Is there a naming convention for method that returns completely a brand new object?
"Generate" ? "Create" ?
Is there a naming convention for method that returns completely a brand new object?
"Generate" ? "Create" ?
It can be Create
as @David suggested, or GetNew
- like GetNewProduct().
I prefer GetNew, because Create is more used in factory methods, GetSomething for plain objects, and then GetNewSomething to emphasize that actually a new object is being created.
There is any public Microsoft recommended convention for that.