BellevueCollege / CtcApi

A standardized, reusable, open source code library developed by and for the Community & Technical Colleges of Washington State in the creation of their own software applications.
Other
9 stars 3 forks source link

Verify data types have public constructors #1

Open cmshawns opened 11 years ago

cmshawns commented 11 years ago

Most all objects in the API were given protected constructors to better control object creation. While this still makes sense for some objects, it creates a hardship with LINQ, etc. Without a constructor, the calling code can't use the new property-assignment syntax to create new objects with one statement.

It seems reasonable that we'd want non-ODS-bound types (such as IDs, etc.) to be more flexible in this regard.