No need to apologize. I am still a big time newbie (even after 6 years of working with .net, on and off). So I can really learn a lot. I will follow the links. Thank you, Bruce.
>Hi Dmitry,
>
>I apologize in advance if you know this stuff, but the whole idea of "Type" is so different in dotnet that I thought I would pass along this linkfest
>
>
http://www.knowdotnet.com/articles/referencetypes2.html>
>
>
http://msdn.microsoft.com/en-us/magazine/cc301569.aspx>
>
>and the special case of strings
>
>
http://stackoverflow.com/questions/3655984/why-is-string-a-reference-type>
>A big early mistake of mine was thinking I could pass a dataset ByVal, and it would behave like a VFP value parameter.
>
>HTH
>
>Bruce
>
>
>>Hi,
>>
>>Here is a segment of code:
>>
>>
>>DataSet ds = new DataSet();
>>MyClass.MyMethod( ds );
>>
>>if (ds =!null)
>>{
>> // Error message. Since ds is null. But why the above ds =! null does not catch it?
>>}
>>
>>MyClass.MyMethod( DataSet ds)
>>{
>> // for testing
>> ds = null;
>>}
>>
>>
>>Why does the line ds =! null does not catch that the ds is null?
>>
>>I also tried to declare the parameter ds as Out but it does not work either.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham