protected override Action <object> OnThrowNullIsProhibitedExceptionOnUnpacked(ReflectionSerializerNilImplicationHandlerOnUnpackedParameter parameter) { return (_ => { SerializationExceptions.ThrowNullIsProhibited(parameter.MemberName); }); }
protected override Action <object> OnPackingCore(ReflectionSerializerNilImplicationHandlerParameter parameter, Func <object, bool> condition) { return (value => { if (condition(value)) { SerializationExceptions.ThrowNullIsProhibited(parameter.MemberName); } }); }