I've worked with API's that had what appeared to be instances of methods within other entities, and I haven't been able to figure out how to recreate this for myself. For instance, if I have a class called "House", and there were different doors in that house, and I wanted to put a window in one of the doors, the code to work with the instance would look something like this:
House myHouse = New House;
myHouse.Rooms("living room").Doors("front").PlaceWindow("frosted four pane");
I hope my representation makes sense. I've been living in VB.Net for months, and we're just starting to switch back to C#. I am really just curious about the This.This.This.This aspect.
I'd like to have an object that is this easy to use and manipulate, and I can only place properties and methods within a single class with my current knowledge. I just don't know what to search for in the search engines to figure out how to make this kind of class (or whatever type of compilation it is). If anyone could steer me in the right direction, it would help tremendously.