How to change component icon inside a DLL plugin programmatically ?

I’m creating a network plugin for unity as a DLL file. How do I programmatically change the icon of a component inside the DLL?
196616-example.png

Worked for me : https://forum.unity.com/threads/custom-asset-icons.118656/#post-2443602