コード例 #1
0
        public static Reader <T> CreateReader <T>(TypeImpl type)
        {
            var method = Readers.GetOrAdd(type, CreateReaderMethod);

            return(MethodAdapter.CastReader <T>(method, type));
        }
コード例 #2
0
        public static Writer <T> CreateWriter <T>(Type type)
        {
            var method = Writers.GetOrAdd(type, CreateWriterMethod);

            return(MethodAdapter.CastWriter <T>(method, type));
        }