protected internal override bool addEntry(NetworkTableEntry nte) { lock (this) { NetworkTableEntry local_1 = (NetworkTableEntry) this.__\u003C\u003EnamedEntries.get((object) nte.__\u003C\u003Ename); if (local_1 != null) { if ((int) local_1.getId() != (int) nte.getId()) { this.__\u003C\u003EidEntries.remove(local_1.getId()); if ((int) nte.getId() != (int) ushort.MaxValue) { local_1.setId(nte.getId()); this.__\u003C\u003EidEntries.put(nte.getId(), (object) local_1); } } local_1.forcePut(nte.getSequenceNumber(), nte.getType(), nte.getValue()); } else { if ((int) nte.getId() != (int) ushort.MaxValue) this.__\u003C\u003EidEntries.put(nte.getId(), (object) nte); this.__\u003C\u003EnamedEntries.put((object) nte.__\u003C\u003Ename, (object) nte); } } return true; }
public virtual void putValue(NetworkTableEntry nte, object obj) { if (nte.getType() is ComplexEntryType) { lock (this.entryStore) { ComplexEntryType local_1 = (ComplexEntryType) nte.getType(); this.entryStore.putOutgoing(nte, local_1.internalizeValue(nte.__\u003C\u003Ename, obj, nte.getValue())); } } else this.entryStore.putOutgoing(nte, obj); }