static public string ReadText(this Nook item) { string text; item.TryReadText(out text); return(text); }
static public bool MoveTo(this Nook item, Nook dst_nook) { if (item.CopyTo(dst_nook)) { item.Delete(); return(true); } return(false); }
static public bool CopyTo(this Nook item, Nook dst_nook) { bool result = false; item.Read(delegate(Stream src_stream) { result = dst_nook.WriteFromStream(src_stream); }); return(result); }
static public bool TryReadText(this Nook item, out string text) { string temp = null; bool result = item.Read(delegate(Stream stream) { temp = stream.ReadText(); }); text = temp; return(result); }
static public Nook GetChangeNook(this NookSystem item, string path, Nook src_nook) { Nook dst_nook = item.GetNook(path); if (src_nook != null && src_nook.IsPresent()) { src_nook.MoveTo(dst_nook); } return(dst_nook); }
public Nook_Monitored(Nook n) { nook = n; nook_monitor = nook.CreateNookMonitor(); }
public NookMonitor(Nook n) { nook = n; }
static public NookMonitor CreateNookMonitor(this Nook item) { return(new NookMonitor(item)); }
public Nook_Pair(Nook d, Nook s) { dominate_nook = new Nook_Monitored(d); submissive_nook = new Nook_Monitored(s); }
static public bool WriteFromStream(this Nook item, Stream src_stream) { return(item.Write(delegate(Stream dst_stream) { dst_stream.WriteStream(src_stream); })); }
static public bool WriteEmpty(this Nook item) { return(item.Write(delegate(Stream stream) { })); }
static public bool WriteData(this Nook item, byte[] data) { return(item.Write(delegate(Stream stream) { stream.Write(data); })); }
static public bool WriteText(this Nook item, string text) { return(item.Write(delegate(Stream stream) { stream.WriteText(text); })); }
public Nook_Pair_Shadowed(Nook d, Nook s) : base(d, s) { }
public Nook_Pair_Linked(Nook d, Nook s) : base(d, s) { }
static public bool ReadIntoStream(this Nook item, Stream dst_stream) { return(item.Read(delegate(Stream src_stream) { dst_stream.WriteStream(src_stream); })); }