ScratchPageBase GetPhantomImpl() { if (_realImpl != null) { return(_realImpl); } if (_phantomImpl == null) { _phantomImpl = new PhantomScratchPage(this); } return(_phantomImpl); }
internal RealScratchPage GetRealImpl() { if (_realImpl == null) { _realImpl = LoadRealImpl(); _phantomImpl = null; } else if (UnderlyingChanged()) { RealScratchPage result = LoadRealImpl(); if (result.Text != _realImpl.Text) { result.Text = _realImpl.Text; } _realImpl = result; } return(_realImpl); }