Answer the question
In order to leave comments, you need to log in
How does dispose work in c#?
Hello! I would like to know how the DIspose method of the IDisposable interface works. I decided to make a simple class that implements the interface itself
public class Emploer : IDisposable
{
public string Company { get; set; }
public Emploer( string company) { Company = company; }
public void Dispose()
{
}
}
Answer the question
In order to leave comments, you need to log in
Do I need to explicitly implement the object destruction logic?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question