UWorld interview question

What is IDisposable pattern in C# and how do you implement it.