public void Add(BinaryTagNode node) { if (Nodes.ContainsKey(node.Name)) { throw new ArgumentException("DuplicateBinaryTagNodeException: The BinaryTagNode \"" + node.Name + "\" already exists!"); } Nodes.Add(node.Name, node); }
public void Add(BinaryTagNode node) { if (node.Type == (TagType.TagList | TagType.TagByteArray | TagType.TagIntArray | TagType.TagLongArray | TagType.TagEnd)) { throw new Exception("InvalidBinaryTagNodeException\nTag is not a primitive BinaryTagNode / BinaryTagNodeMultiple"); } Nodes.Add(node); }
public void Remove(BinaryTagNode node) { Nodes.Remove(node.Name); }
public bool Contains(BinaryTagNode node) { return Nodes.ContainsValue(node); }
public bool Contains(BinaryTagNode node) { return(Nodes.Contains(node)); }