BTDB.EventStoreLayer.TypeDescriptorExtensions.GenerateSaveEx C# (CSharp) Метод

GenerateSaveEx() публичный статический Метод

public static GenerateSaveEx ( this descriptor, IILGen ilGenerator, Action pushWriter, Action pushCtx, Action pushSubValue, Type subValueType ) : void
descriptor this
ilGenerator IILGen
pushWriter Action
pushCtx Action
pushSubValue Action
subValueType System.Type
Результат void
        public static void GenerateSaveEx(this ITypeDescriptor descriptor, IILGen ilGenerator, Action<IILGen> pushWriter, Action<IILGen> pushCtx, Action<IILGen> pushSubValue, Type subValueType)
        {
            if (descriptor.StoredInline)
            {
                descriptor.GenerateSave(ilGenerator, pushWriter, pushCtx, pushSubValue, subValueType);
            }
            else
            {
                ilGenerator
                    .Do(pushCtx)
                    .Do(pushSubValue)
                    .Callvirt(() => default(ITypeBinarySerializerContext).StoreObject(null));
            }
        }