/// <summary> /// this constructor is used to initialize a <seealso cref="IOContext"/> instance with a new value for the readOnce variable. </summary> /// <param name="ctxt"> <seealso cref="IOContext"/> object whose information is used to create the new instance except the readOnce variable. </param> /// <param name="readOnce"> The new <seealso cref="IOContext"/> object will use this value for readOnce. </param> public IOContext(IOContext ctxt, bool readOnce) { this.Context = ctxt.Context; this.MergeInfo = ctxt.MergeInfo; this.FlushInfo = ctxt.FlushInfo; this.ReadOnce = readOnce; }
private IOContext(bool readOnce) { this.Context = Context_e.READ; this.MergeInfo = null; this.ReadOnce = readOnce; this.FlushInfo = null; }
public IOContext(FlushInfo flushInfo) { Debug.Assert(flushInfo != null); this.Context = Context_e.FLUSH; this.MergeInfo = null; this.ReadOnce = false; this.FlushInfo = flushInfo; }
private IOContext(Context_e context, MergeInfo mergeInfo) { Debug.Assert(context != Context_e.MERGE || mergeInfo != null, "MergeInfo must not be null if context is MERGE"); Debug.Assert(context != Context_e.FLUSH, "Use IOContext(FlushInfo) to create a FLUSH IOContext"); this.Context = context; this.ReadOnce = false; this.MergeInfo = mergeInfo; this.FlushInfo = null; }
public IOContext(Context_e context) : this(context, null) { }