Forum Discussion
kalldrexx
15 years agoContributor
Unfortunately, while this works for VB.Net objects, it does not work when you pass in C# var objects. For example, take the following method:
if you pass in a var as the textfieldObject parameter, it fails with the (useless) exception of "var(VarDelegate)"
public static void SetTextFieldValue(object textfieldObject, string value, bool useTabToExit = true)
{
var textfield = new var(textfieldObject);
// .... do stuff here
}
if you pass in a var as the textfieldObject parameter, it fails with the (useless) exception of "var(VarDelegate)"