Is Operator - VB.Net
The Is operator checks if the run-time type of an expression result is compatible with a given type.
This is frequently used in conjunction with the TypeOf operator.
Dim oDataGridViewCell As System.Windows.Forms.DataGridViewCell
oDataGridViewCell = Me.dgrDataGridView.Rows(e.RowIndex).Cells(e.ColumnIndex)
If (TypeOf oDataGridViewCell Is System.Windows.Forms.DataGridViewCheckBoxCell) Then
C# Equivalent
The equivalent operator in C# is the typeof Operator
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext