Re: memory leak or not?



Cor Ligthert [MVP] <notmyfirstname@xxxxxxxxx> wrote:
I am glad I can help you with this.

The string is immutable what you are showing is not a reference.

Um, just because it's immutable doesn't mean that string isn't a
reference type.

You can have a look at what immuatble means at these pages.

http://www.yoda.arachsys.com/csharp/parameters.html

:-)

I fail to see the relevance...

--
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)