Partial-class generation