DLL библиотека для C#

Есть код который нельзя менять вообще, к которому нужно написать DLL библиотеку. Суть программы: юзер вводит год рождения, а на консоль выводится возможный возраст (2000 -> 19 или 20)

using System;
using System.Runtime.InteropServices;

public sealed class Year
{
  public static readonly Year birthday = new Year();
  private static int value;
  private int year;

  static Year()
  {
    Year.SetUnhandledExceptionFilter(ref Year.value);
  }

  [DllImport("kernel32.dll")]
  private static extern IntPtr SetUnhandledExceptionFilter(ref int lpTopLevelExceptionFilter);

  public static event EventHandler Born;

  private Year()
  {
    if (Year.birthday == null)
    {
      this.year = int.Parse(Console.ReadLine());
      Console.Clear();
    }
    if (Year.Born == null)
      return;
    Year.Born((object) this, EventArgs.Empty);
  }

  public int ApproximateAge()
  {
    return this.year - Year.birthday.year;
  }

  private static void Main()
  {
    Console.WriteLine((object) new Solution((object) Year.birthday));
  }
} 

Ответы (0 шт):