[Rant]
This is stupid. I wanna rant 1st. c# is overly complicated and pointless compared to VB.NET in my mind, alas, I am being forced to learn this akward language that give me no extra benefit when coding reletively simple web apps
[/Rant]
Ok...Vb.NET:
Then in UI:VB Code:
Public Class Users() Public Function Msg() As String Return "Woof" End Function End Class
Simple and to the point.VB Code:
Dim MyObj As New Users Console.WriteLine(MyObj.Msg)
The mess I have in c# is:
Then in UI:VB Code:
public class Users { public Users() { ///What on earth is this for?! Obvious isn't it...BAH! ///Pointless...??? } public string Msg() { return "Woof"; } }
VB Code:
Users MyObject = new Users(); System.Console.WriteLine(MyObject.Msg());
What actually happens in the .Msg in the UI gets a squiggley line and the error is:
Wot on earth does that mean?!Method 'Users.Msg()' referenced without parentheses
I am tired and stressed
Woka





Reply With Quote