Hello, I am currently learning C# language and i had one simple question in my mind which is really troubling me.... I have defined a structure like given below:
struct MyStruct
{
int x;
int y;
public MyStruct(int x,int y)
{
this.x = x;
this.y = y;
}
public structName()
{
Console.WriteLine("This is MyStruct");
}
class MyClass
{
public static void Main(String []args)
{
MyStruct m1 = new MyStruct(10,20);
m1.structName();
}
}
So my question here is... Since Structures are value type, all the members in it will be stored on Stack... The object is created in the class (which is a reference type). Now will m1 be created on heap or on stack????
One more question is, What should i do to expertise myself in C# language and how to do it? I am currently doing MCPD course for .Net 3.5 frmwrk which has recently started, so..... How will this certification help me in my career???
M waiting for some replies.... Thanks in advance..
Regards,
Shivanand Arur.

VulpesPosted Jul 4, 2011, 12:46 PM
Shivanand ArurPosted Jul 4, 2011, 12:42 PM
Mahesh ChandPosted Jul 4, 2011, 12:19 PM
Go to home page and click on Beginners link at the top to see some useful links and downloads.
Good luck!
Amit ChoudharyPosted Jul 4, 2011, 4:28 AM
For second question, My suggestion is to keep learning in a way you feel ease, first go for console apps with basic OOPS concepts then Windows forms to have some idea over GUI and other system namespaces. When you are comfortable you can write your code for any application.
Try to do some projects it'll help you in gaining confidence.
Well, once you are good in c# and you have certification then you can show it to any hiring firm and then they'll test your skills on C# then you have to prove it. Just like that.
Thanks.
VulpesPosted Jul 4, 2011, 4:00 AM