Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
C# & .Net Framework Reference
How to: Know the Difference Between Passing a Struct and Passing a Class Reference to a Method (C#)

Full Name:
How to: Know the Difference Between Passing a Struct and Passing a Class Reference to a Method (C#)

Short Name:
How to: Know the Difference Between Passing a Struct and Passing a Class Reference to a Method (C#)

Type of Entity:
C#

Abstract:
This example shows that when a struct is passed to a method, a copy of the struct is passed, but when a class instance is passed, a reference is passed.

MSDN Source URL:
http://msdn2.microsoft.com/8b0bdca4.aspx

 
COPYRIGHT/DISCLAIMER | CONTACT US