CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: darwen

Search: Search took 1.04 seconds.

  1. Replies
    18
    Views
    26,253

    Re: string in Stack or Heap ?

    How do you know you're getting local copies ?

    Actually you're not getting local copies, you're getting references. The strings are passed by reference. Because System.String is a class which are...
  2. Replies
    18
    Views
    26,253

    Re: string in Stack or Heap ?

    You will be implicitly :



    string s = "hello";


    compiles to (in IL)
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured