Saving data which is specific for Custom component

Hi guys,

Basically main part is stated in the header.
I need to store some data in GH file relevant to Custom component only.
Any example how to do it?

Thanks,
Dmitriy

Override Read and Write method of your component

Thank you @gankeyu.
Will try it.