Design issue: Struct vs. Class
- From: "Pohihihi" <noemail@xxxxxxxxxxx>
- Date: Sat, 24 Dec 2005 13:13:39 -1000
|
After reading the thread "Struct faster than
class?" I thought I should surely understand if I am doing anything wrong in my
work.
First, Jon you are very professional. Excellent. I
will wish you as my mentor.
Anyways, getting to my question --
I am in need of enums a lot in my project. More for
meta data reasons. e.g. Toggle -on/off, Close/Open etc.
Most are int type values but this one
meta data is full of Guid. Now that enum supports int etc and not string or Guid
so I endup making it a Struct. No perticular reason, just to make it look
different while programming (as there are tons of classes to keep track of).
Anyways, I am not sure if this approch is better (or even ok). Not being
familier with memory management etc (and will love to get pointers to read
more on this also) I am not sure how things are handled run time if it is
changed to static Class type. I have so many questions on this topic
alone so please feel free to throw anything on this side.
Thanks,
Po
|
- Follow-Ups:
- Re: Design issue: Struct vs. Class
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Design issue: Struct vs. Class
- Prev by Date: multiple rejection
- Next by Date: Re: multiple rejection
- Previous by thread: multiple rejection
- Next by thread: Re: Design issue: Struct vs. Class
- Index(es):
Relevant Pages
|