3
Answers

c# and VB.NET's Implements

john_farrellus

john_farrellus

20y
3.1k
1
I understand how to inherit an interface in C#, but how can you change the method name of that interface? What I would like to do is exactly like the implements keyword in VB.NET, if given the VB.NET Class: Public Class Class1 Implements IDisposable ' The Implements keyword here tells the framework to use the method below for Dispose. Public Sub TrashIt() Implements System.IDisposable.Dispose End Sub ' How do you get that to work in C#? Use a strange name for something like this? Is there anyway to to do that in C#? John...
Answers (3)