المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Hi peoples



C# Programming
08-31-2009, 10:25 AM
i have one doubt,

actually i have declared a string array
string ex = new string[3];

in a method i m returning string[10]. ie

private string temp()
{
string temp1 = new string[10];
}

ex= temp();

before calling this method my string ex size is 3, but after calling the method it size increased to 10..

is it possible how come?? actually at the starting itself we have allocated the memory as 3, how its getting increased??

can any one help me?