What is the difference between a reference type and value type in c#?

后端 未结 14 2459
谎友^
谎友^ 2020-11-21 05:13

Some guy asked me this question couple of months ago and I couldn\'t explain it in detail. What is the difference between a reference type and a value type in C#?

I

14条回答
  •  再見小時候
    2020-11-21 05:57

    Variable types and Reference Value are easy to apply and well applied to the domain model, facilitate the development process.

    To remove any myth around the amount of "value type", I will comment on how this is handled on the platform. NET, specifically in C # (CSharp) when called APIS and send parameters by value, by reference, in our methods, and functions and how to make the correct treatment of the passages of these values​​.

    Read this article Variable Type Value and Reference in C #

提交回复
热议问题