Download Utility/LinkedHashSet.cs from ewdlop/AIMA-CSharp: direct link, hf CLI and curl.
- Browser
- Download file 3.11 kB
-
https://huggingface.co/ewdlop/AIMA-CSharp/resolve/refs%2Fpr%2F1/Utility/LinkedHashSet.cs
- Command line
-
hf download hf://ewdlop/AIMA-CSharp@refs/pr/1/Utility/LinkedHashSet.cs
-
curl -L -o LinkedHashSet.cs https://huggingface.co/ewdlop/AIMA-CSharp/resolve/refs%2Fpr%2F1/Utility/LinkedHashSet.cs
3.11 kB
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace AIMA.Utility | |
| { | |
| public class LinkedHashSet<T> : ISet<T> | |
| { | |
| private readonly IDictionary<T, LinkedListNode<T>> _keyValuePairs; | |
| private readonly LinkedList<T> _linkList; | |
| public LinkedHashSet(int initialCapacity) | |
| { | |
| _keyValuePairs = new Dictionary<T, LinkedListNode<T>>(initialCapacity); | |
| _linkList = new LinkedList<T>(); | |
| } | |
| public LinkedHashSet() | |
| { | |
| _keyValuePairs = new Dictionary<T, LinkedListNode<T>>(); | |
| _linkList = new LinkedList<T>(); | |
| } | |
| public int Count => throw new NotImplementedException(); | |
| public bool IsReadOnly => throw new NotImplementedException(); | |
| public bool Add(T item) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void Clear() | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool Contains(T item) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void CopyTo(T[] array, int arrayIndex) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void ExceptWith(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public IEnumerator<T> GetEnumerator() | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void IntersectWith(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool IsProperSubsetOf(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool IsProperSupersetOf(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool IsSubsetOf(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool IsSupersetOf(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool Overlaps(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool Remove(T item) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public bool SetEquals(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void SymmetricExceptWith(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void UnionWith(IEnumerable<T> other) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| void ICollection<T>.Add(T item) | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| IEnumerator IEnumerable.GetEnumerator() | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| } | |
| } | |