Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Reference vs Value types (aka Classes vs Structs) in C#

Language: Layout:
+ ] Show input
Compilation time: 0,14 sec, absolute running time: 0,08 sec, cpu time: 0,08 sec, average memory usage: 11 Mb, average nr of threads: 3 
edit mode |  history  | discussion
classA: hello! classB: hello!
structA: hello! structB: hello!

classA: new val classB: new val
structA: hello! structB: new val

    
                
λ
.NET NoSQL database for rapid development