Comments on: C# Intermediate – Interfaces https://code-maze.com/csharp-interfaces/ Learn. Code. Succeed. Thu, 15 Feb 2024 11:02:19 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Marinko https://code-maze.com/csharp-interfaces/#comment-2573 Thu, 15 Oct 2020 10:07:46 +0000 https://code-maze.com/?p=4648#comment-2573 In reply to DENIS YOVANI SALMERON CRUZ.

Pretty much it. There are other ways like casting the ExampleClass object to an interface type and then calling the available method. Also, the dependency injection could be used.

]]>
By: DENIS YOVANI SALMERON CRUZ https://code-maze.com/csharp-interfaces/#comment-2571 Thu, 15 Oct 2020 01:20:30 +0000 https://code-maze.com/?p=4648#comment-2571 In the Explicit Interface Implementation explanation it would be good to put an example on how we can access one either methods; I think is with an interface that receives the example class object:

Interface1 example = new ExampleClass();

example.MethodExample();

but I don’t know if there’s another way.

]]>
By: Marinko https://code-maze.com/csharp-interfaces/#comment-455 Tue, 23 Oct 2018 12:01:00 +0000 https://code-maze.com/?p=4648#comment-455 In reply to JAPISOFT.

Hello JAPISOFT. Thank you very much on that suggestion, I can’t believe I wrote that 😀 It must have been a type, I can’t find other excuse for me 😀 I am glad you are enjoying this series and one more time, Thanks a lot.

]]>
By: JAPISOFT https://code-maze.com/csharp-interfaces/#comment-454 Tue, 23 Oct 2018 10:52:00 +0000 https://code-maze.com/?p=4648#comment-454 In the third example, the class JsonWriter() must implement the method WriteFile() not FormatFile(). Otherwise, a great series. Thank you!

]]>