public void SetBoolean(ushort tokenId) { //Attributes[tokenId] = null; int index = InnerKeys.IndexOf(tokenId); if (index < 0) { index = InnerKeys.Count; InnerKeys.Add(tokenId); InnerValues.Add(null); } else { InnerValues[index] = null; } }
/// <summary> /// Used by DomElement to (finally) set the ID value /// </summary> /// <param name="tokenId"></param> /// <param name="value"></param> internal void SetRaw(ushort tokenId, string value) { if (value == null) { Unset(tokenId); } else { //Attributes[tokenId] = value; int index = InnerKeys.IndexOf(tokenId); if (index < 0) { index = InnerKeys.Count; InnerKeys.Add(tokenId); InnerValues.Add(value); } else { InnerValues[index] = value; } } }