I'm trying to create an excel document generator project. Currently i'm working on cell styles part.
So i have next structure:
public class Styles : List<Style>, ISerializableClass
{
...some special methods...
}
The thing i want to achieve:
When some Style ( item ) is being added to the Styles i want to automatically add/modify/update the Style id.
In other words i want to override the base list.Add() behavior. How can i achieve this?
Or i just should add this method in my Styles class:
public void Add(Style style)
{
/*
* Some mu logic
*/
base.Add(style);
}
To hide the default List.Add() method?