public void loadSrc(DustInfoTray src) { this.entity = src.entity; this.key = src.key; this.value = src.value; this.dustHint = src.dustHint; this.readerObject = src.readerObject; }
public static VType getValue <VType>(DustEntity entity, VType defVal, params DustKey[] keys) { var tray = new DustInfoTray(entity, null); DustEntity e = null; foreach (DustKey key in keys) { tray.key = key; if (null != e) { tray.entity = e; } Dust.access(DustAccessCommand.read, tray); e = tray.value as DustEntity; } return((VType)(tray.value ?? defVal)); }
public DustInfoTray(DustInfoTray src) { loadSrc(src); }
public static void access(DustAccessCommand op, DustInfoTray tray) { dustImpl.accessImpl(op, tray); }
public DustVisitTray(DustInfoTray src, DustVisitor visitor) : base(src) { this.visitor = visitor; value = visitor; }