Pages

Monday, April 28, 2008

DOTNET 2.0

Ref & out:

Ref and Out are worked as same process in method of arguments sending reference of object .

Difference between ref and out:

Ref –it should be initialize before it use

Out – here is not need to initialize before to use it

So ref is mention input and out Is output. Using ref & out we cannot do overloading

Ex:

Void testing(ref int no)

Void testing (out int no)

---- this Is not possible .

But we can overload like this possible..

Void testing(int i);

Void testing(ref int i);

--கோ.மோகன் ராஜ்

-----------------------------------------------------------------------------------------------------------------

1 comment:

Kannan Samynathan said...

In our daytoday life we're use "bye"....
do you know the meaning for this "bye"
"bye" is an American word...
"Be God With You" Is the meaning.....