Hi guys-
I know this is a broad question, but can someone help me understand IEnumerable and IEnumerator? I am in the dark on this one, and I have spent many many hours researching this, and I just dont understand the concept, nor do I understand how to make my own collections. Could someone...
Sorry, it doesn't answer my question ahah. Main doesn't need an object to run the overall program, if this is what you are pointing to. Im wondering, why excactly you have to create objects on the heap only through static methods.
I am trying to understand a hard to grasp concept. If any of you will give me pointers, it will be much appreciated.
Say there is a class Document with two members
void Read();
void Write();
Now there is another class called Note, and it inherits Document class
override Read();
new void...
Quick quesion all-
Why do you exactly have to create a new object in a static method?
Why wont this work?:
class Program
{
Document doc = new Document();
doc.Write();
static void Main(string[] args)
{
}
}
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.