GetLoader() публичный Метод

public GetLoader ( ITypeDescriptor descriptor ) : Func
descriptor ITypeDescriptor
Результат Func
Пример #1
0
        public object Load(uint typeId, AbstractBufferedReader reader, ITypeBinaryDeserializerContext context)
        {
            var infoForType = _id2DescriptorMap[(int)typeId];

            if (infoForType.Loader == null)
            {
                infoForType.Loader = _typeSerializers.GetLoader(infoForType.Descriptor);
            }
            return(infoForType.Loader(reader, context, this, infoForType.Descriptor));
        }
Пример #2
0
        public object Load(uint typeId, ref SpanReader reader, ITypeBinaryDeserializerContext?context)
        {
            var infoForType = _id2DescriptorMap[typeId];

            if (infoForType !.Loader == null)
            {
                infoForType.Loader = _typeSerializers.GetLoader(infoForType.Descriptor);
            }
            return(infoForType.Loader(ref reader, context, this, infoForType.Descriptor));
        }