S' an unsealed ref class cannot have a public visible constructor. Seal the class, or specify constructor as 'internal', ...