/// <summary> /// Ctor: read from binary stream. /// </summary> public CedictSense(BinReader br) { Domain = HybridText.Deserialize(br); Equiv = HybridText.Deserialize(br); Note = HybridText.Deserialize(br); }
/// <summary> /// Static ctor: initializes empty hybrid text object. /// </summary> static HybridText() { List <TextRun> emptyRuns = new List <TextRun>(); empty = new HybridText(new ReadOnlyCollection <TextRun>(emptyRuns)); }
/// <summary> /// Ctor: init immutable instance. /// </summary> public CedictSense(HybridText domain, HybridText equiv, HybridText note) { Domain = domain; Equiv = equiv; Note = note; }