R
Ron Vecchi
The error Im getting--
The type or namespace name 't' could not be found (are you missing a using
directive or an assembly reference?)
The error is referencing the IF expression
VB.NET to convert
-----------------------------------------------
Public Overloads Overrides Function CanConvertFrom _
(ByVal context As ITypeDescriptorContext, ByVal t As Type) As Boolean
If (TypeOf t Is String) Then
Return True
End If
Return MyBase.CanConvertFrom(context, t)
End Function
C# That Im getting error on
-----------------------------------
public override bool CanConvertFrom(ITypeDescriptorContext context, Type t)
{
if(typeof(t) is String){
return true;
}
return base.CanConvertFrom (context, t);
}
The type or namespace name 't' could not be found (are you missing a using
directive or an assembly reference?)
The error is referencing the IF expression
VB.NET to convert
-----------------------------------------------
Public Overloads Overrides Function CanConvertFrom _
(ByVal context As ITypeDescriptorContext, ByVal t As Type) As Boolean
If (TypeOf t Is String) Then
Return True
End If
Return MyBase.CanConvertFrom(context, t)
End Function
C# That Im getting error on
-----------------------------------
public override bool CanConvertFrom(ITypeDescriptorContext context, Type t)
{
if(typeof(t) is String){
return true;
}
return base.CanConvertFrom (context, t);
}