Hi!
this is my first post so Hello everyone!
Sorry if my question is bit noobish but here it goes - thing I'm currently struggling to grasp is why predefined classes in .NET framework don't implement their interfaces within their bodies? I'm working currently with StateBag class and it says that class implements IStateManager, IDictionary, ICollection, IEnumerable interfaces, however there are no members of those interfaces within StateBag class declaration
in my custom class I have a field of StateBag type:
StateBag ViewState = new StateBag();
if StateBag class implements say IStateManager interface then I would have thought that ViewState field should be able to access *directly* IStateManager members like LoadViewState(), SaveViewState(), TrackViewState() and so on.it's not the case and those members are called:
((IStateManager)ViewState).LoadViewState();
the way they are called is quite confusing for me and it seems to me that StateBag class don't implement those interfaces *directly*
If anyone has explanation for this problem please share your knowledge
, once again sorry if the question is bit silly
thank you in advance