The New Read-Only Collections in .NET 4.5: Listing 2

Employee subclass with EIN and Salary properties.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VSMReadOnlyCollectionDemo
    public class Employee : Person
        public int EIN { get; set; }
        public Decimal Salary { get; set; }

About the Author

Eric Vogel is a Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at [email protected].

comments powered by Disqus


Subscribe on YouTube

Upcoming Events