jeudi 5 avril 2018

Class design of overriding styling in C#

I have a requirement in which at different hierarchy in a xml each node have similar set of properties. But every parent can override its child settings. Its just like the CSS styling over the html element in reverse order.

For Example

..... Some common properties

  <Node2>
     <settings>
          ..... Some common properties
     </settings>
  </Node2>

       <Node3>
           <settings>
             ..... Some common properties
         </settings>
     </Node3>

So I am wondering which design should I followed. How I can start writing the classes. Any help please?

I am working with C#.

Aucun commentaire:

Enregistrer un commentaire