private static void Main(string[] args)
    {
        ResolverFactory <Stream, Hat> .RegisterResolver(new MyStreamToHatResolver());

        var res = ResolverFactory <Stream, Hat> .GetResolver();
    }