The Sample is available in github in the below link
The Sample shows how a C# Render Plug-in can create custom Materials and assign an automatically generated UI for the material. The Material is called CSharpSampleAutomaticUIMaterial and I have added two fields to the material. One boolean field “Yes/No” and one color field. The sample also demostrates how to save and import the material from files.
Below is a picture that depicts the custom materials and the automtaically created UI section called Parameters.