I am coming from the background in C ++ and I am trying to teach myself C #. I am still a student, and this is not a school project, and I am now in a break. The focus was on C / C ++, java
I have an old school project from two years ago, which I did in C ++, which stores a DVD, a book, a DVD, information in a container, and then shows it. I am trying to make the same program in C #
I have two questions that are very similar.
My program uses typedef on the container and made the container objects as follows:
typedef set<Item*> ItemSet; ItemSet allBooks;
First question: is there a typdef in C #, I think its equivalent uses? But I can not use it on the container. Is there a way to do something similar above in C # or just create multiple sets? I decided that the Hashset is like a set in C ++
HashSet<Item> keys = new HashSet<Item>();
Second question: I also used typedef for dialing outside the class, and then in the private section I made a dialing object. Can I do this in C #?
typedef set<string> StringSet; class Item { private: string Title; StringSet* Keys;
I understand that C # has no pointers!
user249375
source share