private SerializableMember(string name, Getter getter, Formatter formatter, ShouldSerialize?shouldSerialize, bool emitDefault) { Name = name; Getter = getter; Formatter = formatter; ShouldSerialize.SetAllowNull(shouldSerialize); EmitDefaultValue = emitDefault; GeneratedMethod.Clear(); }
public void Dispose() { if (!IsDisposed) { if (CopyOwner.HasValue) { CopyOwner.Value.Dispose(); CopyOwner.Clear(); } IsDisposed = true; } }
internal ConcreteBoundConfiguration( InstanceProvider?instanceProvider, IEnumerable <DeserializableMember> deserializeColumns, Column[] serializeColumns, bool[] serializeColumnsNeedEscape, Options options ) : base( deserializeColumns, serializeColumns, serializeColumnsNeedEscape, options ) { if (instanceProvider != null && deserializeColumns.Any()) { var builder = RowConstructor.Create <T>(MemoryPool, instanceProvider, deserializeColumns); RowBuilder.Value = builder; } else { RowBuilder.Clear(); } }