新版本的变更 / C# 7.0

using System;

var oleg = new Man("Oleg");
oleg.GetLastName();

class Man {
    public string Name { get; }

    public Man(string name) => Name = name ?? 
        throw new Exception("name is null");

    public string GetFirstName()
    {
        var parts = Name.Split(" ");
        return (parts.Length > 0) ? parts[0] : 
            throw new Exception("No name!");
    }

    public string GetLastName() => 
        throw new NotImplementedException();
}