Lecture overview -- Keyboard shortcut: 'u'  Previous page: Passing references as value parameters -- Keyboard shortcut: 'p'  Next page: Reference Parameters -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Data Access, Properties, and Methods - slide 23 : 29

Passing structs as value parameters
There are no surprises when we pass struct values as value parameters
date.cs
The struct Date and the method DayDifference with a value parameter.
person.cs
The class Person which calls DayDifference on dateOfBirth.
Client.cs
A client of Person and Date which reveal the consequences.
output
Client program output.
Go to exercise
Passing struct values as ref parameters
There is a good fit between use of value types and call-by-value parameter passing