Lecture overview -- Keyboard shortcut: 'u'  Previous page: Variance -- Keyboard shortcut: 'p'  Next page: Generic interfaces: IComparable<T> -- 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    Generic Types and Methods - slide 13 : 21

Generic structs

Generic structs are very similar to generic classes

We use the generic struct Nullable<T> as an example

nullable.cs
A partial reproduction of struct Nullable<T>.