3 ms·
But partial classes didn't show up until C# 2.0?
by int_19h 4y ago
But partial classes didn't show up until C# 2.0?
- krallja 4y agoYou’re right, I misremembered! I made a hideous inheritance chain instead: abstract class UserDAL { } abstract class ParcelDAL : UserDAL { } ... abstract class DAL_n : DAL_n_minus_1 { } class DataAccessLayer : DAL_n { } each in their own file, of course. I tried to give them descriptive names and very narrow scopes. But inheritance is pretty dumb here. What does it mean for ParcelDAL to extend UserDAL? A parcel is not a user. When C# 2 came out, I was able to get rid of the inheritance and make them all part of one big partial class, keeping the file names the same.