G
Guest
Hi,
Seems like VB.NET Intellisense and complier does check for method
definitions much. The following code compiles with no errors in VB.NET! (but
of course, trust C# to be strict and perfect )
[c#]
public class MyOwnClass
{
public void Print()
{
Console.WriteLine("Print");
}
}
static void Main(string[] args)
{
object myObj = new MyOwnClass();
myObj.Print();
}
[VB.NET]
Public Class MyOwnClass
Public Sub Print()
Console.WriteLine("Print")
End Sub
End Class
Module Module1
Sub Main()
Dim myObject As Object = New MyOwnClass
myObject.Print()
End Sub
End Module
I believe i read somehere about VB being dynamin binding or
something....dunno whether this is something to do with it.
Seems like VB.NET Intellisense and complier does check for method
definitions much. The following code compiles with no errors in VB.NET! (but
of course, trust C# to be strict and perfect )
[c#]
public class MyOwnClass
{
public void Print()
{
Console.WriteLine("Print");
}
}
static void Main(string[] args)
{
object myObj = new MyOwnClass();
myObj.Print();
}
[VB.NET]
Public Class MyOwnClass
Public Sub Print()
Console.WriteLine("Print")
End Sub
End Class
Module Module1
Sub Main()
Dim myObject As Object = New MyOwnClass
myObject.Print()
End Sub
End Module
I believe i read somehere about VB being dynamin binding or
something....dunno whether this is something to do with it.