What is the Visual Basic equivalent of the following C# boolean expression?
data.GetType() == typeof(System.Data.DataView)
Note: The variable data
is declared as IEnumerable
.
1. C is a programming language for general purpose computers; VB is an event driven programming language that was designed to make computer programming easier for programming beginners.
It is pronounced as Visual Basic . NET, which is an updated feature and version of Classic Visual Basic 6.0. It is pronounced as "C SHARP" language, that belongs to the C family. It is also used to develop various applications running on the .
In brief, Visual Basic refers to a programming language while Visual C++ refers to an IDE. The main difference between Visual Basic and Visual C++ is that Visual Basic is an Object Oriented Programming Language while Visual C++ is an Integrated Development Environment (IDE).
As I recall
TypeOf data Is System.Data.DataView
Edit:
As James Curran pointed out, this works if data is a subtype of System.Data.DataView as well.
If you want to restrict that to System.Data.DataView only, this should work:
data.GetType() Is GetType(System.Data.DataView)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With