Re: memory leak or not?



Cor Ligthert [MVP] <notmyfirstname@xxxxxxxxx> wrote:
Um, just because it's immutable doesn't mean that string isn't a
reference type.

That is exactly why I wrote it.

But you implied that string isn't a reference type. It is. You wrote:

<quote>
The string is immutable what you are showing is not a reference.
</quote>

What I was showing most certainly *is* a reference.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: Concept ? about Modules vs Classes
    ... Keep in mind that in dotNet for every reference type ... Public Class DataClass ... Public Shared Sub getdata(ByVal ds as Dataset, ByVal SQLString As ... String, ByVal TableName as String) ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Datasets? Properties? Values?
    ... Although string is a reference type, .NET has already included handling on ... Passing a reference type by value is just passing a pointer ... Public Property RefDataset() As DataSet ... > Dim FormNumber As String ...
    (microsoft.public.dotnet.framework)
  • Re: Datasets? Properties? Values?
    ... Although string is a reference type, .NET has already included handling on ... Passing a reference type by value is just passing a pointer ... Public Property RefDataset() As DataSet ... > Dim FormNumber As String ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Datasets? Properties? Values?
    ... Although string is a reference type, .NET has already included handling on ... Passing a reference type by value is just passing a pointer ... Public Property RefDataset() As DataSet ... > Dim FormNumber As String ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Datasets? Properties? Values?
    ... Although string is a reference type, .NET has already included handling on ... Passing a reference type by value is just passing a pointer ... Public Property RefDataset() As DataSet ... > Dim FormNumber As String ...
    (microsoft.public.dotnet.general)