Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

partial class #387

Open stephane3434 opened 4 years ago

stephane3434 commented 4 years ago

Hello,

in c# you can use partial class to create another class with the same name

for the entities, it's a good solution to use Prestasharp class for the standard fields and create juste with the same class name for the special fields do you want to use.

sample :

Before : public class customer : PrestaShopEntity, IPrestaShopFactoryEntity

After public partial class customer : PrestaShopEntity, IPrestaShopFactoryEntity

What do you think ?