Click here to Skip to main content
15,896,201 members

Comments by BrianAtSyston (Top 5 by date)

BrianAtSyston 24-Dec-17 18:42pm View    
Ok Bruno Merry C# !!
BrianAtSyston 24-Dec-17 18:11pm View    
Thanks i will check this out and get back to you. Your use of bad language is not at all helpful and gives the impression just trolling.
I think this is Implicit Interface Implementation as they have the same Name 'SomeMethod'. I will do some checking in my C# Test Assembly. As for casting in VB, Casting is very good just add 'Option Strict On' and use all the casting tools TryCast DirectCast Ctype CInt CBol CChar CStr whatever you want I have never had a cast problem after setting 'Option Strict On'

Any way Merry C
Brian UK
BrianAtSyston 24-Dec-17 12:47pm View    
Sorry if i sounded insulting JustWatchLittle it is obviously a user Name with a real person behind it. The message i got from CodeProject looked like a standard copy and paste.

Still I'm convinced, it was not an article!

Sorry butt i obviously got things wrong but i see no wrong in explaining how i find Implementing Interfaces in VB is a better system than in C# and sent a very simple example of the use of the Implements keyword (C# has no Implements).

Can i ask you how do you can Implement Two Interface members with one method in C#?
Brian UK
BrianAtSyston 24-Dec-17 12:05pm View    
Yes i think in real world it makes no difference to the end user what the code was written in only whether it works correctly without error.

Ok how do you get a class member to implement 2 Interface members in 'wonderful' C#
Like
Public Function CompString(st1 As String, st2 As String) As Integer Implements Interface1.CompString, Interface2.CompString
'
Return String.Compare(st1, st2)
End Function

Can you send back a C# direct translation? No in C# you would need 2 or more separate methods. You can't have an Implements list in C#,in fact C# doesn't even have a keyword for it!

I could also mention that VB Select Case can do a lot more than C# switch and (doesn't need a break; at the end of each case!).

Why is c# so good?

Brian UK.
BrianAtSyston 24-Dec-17 11:27am View    
Many Thanks for your reply. This site is a bit of a jungle to navigate.

Merry C
Brian UK.