Here, the intefaces are related to one of the following things: Resource Management, Collections , Enumeration, Conversion & Formatting, Comparison & Equality or Asynchronous Tasks.
| Interface | What It Does |
| IDisposable | Releases unmanaged resources manually (Dispose()). |
| IAsyncDisposable | Async cleanup (DisposeAsync()). |
| IEnumerable | Supports non-generic iteration using foreach. |
| IEnumerable<T> | Generic iteration. |
| IEnumerator | Controls iteration manually. |
| IEnumerator<T> | Generic enumerator. |
| ICollection | Basic collection operations. |
| ICollection<T> | Generic collection. |
| IList | Ordered collection. |
| IList<T> | Generic list. |
| IReadOnlyCollection<T> | Read-only collection. |
| IReadOnlyList<T> | Read-only indexed list. |
| IDictionary | Key-value storage. |
| IDictionary<TKey, TValue> | Generic dictionary. |
| IReadOnlyDictionary<TKey, TValue> | Read-only dictionary. |
| ISet<T> | Represents unique values. |
| IComparable | Defines object ordering. |
| IComparable<T> | Generic comparison. |
| IComparer | Custom sorting logic. |
| IComparer<T> | Generic comparer. |
| IEqualityComparer<T> | Custom equality rules. |
| IEquatable<T> | Custom object equality. |
| ICloneable | Creates object copies. |
| IFormattable | Custom string formatting. |
| IConvertible | Supports type conversion. |
| IFormatProvider | Supplies formatting information. |
| IAsyncEnumerable<T> | Async streaming with await foreach. |
| IAsyncEnumerator<T> | Enumerator for async sequences. |
| IServiceProvider | Dependency injection service resolution. |
| IObservable<T> | Push-based notifications (Observer pattern). |
No comments:
Post a Comment