Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
VB.NET Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
C#
C# General Discussion
Array as function parameter, on stack or on heap?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Marc W, post: 4716, member: 9385"] Okay, but is "int[] ar" a reference type or a value type? I am a little confused here. If I google I find that "Arrays are referece types in C#", but I have some doubts since in C++ something like "int[]" is passed by value, and you should pass it as a pointer for performance. Does something like that apply for C#? Also you in C# you have the Array type, but is int[] of that same type? Like you have the int primitive and the a class corresponding to int if it is boxed. [/QUOTE]
Insert quotes…
Verification
Post reply
C#
C# General Discussion
Array as function parameter, on stack or on heap?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom