Z
zleug
Guest
Hi All.
I new in C#. I create method to return boolean value
public bool Duplicate()
{
bool IsDuplicate = false;
if (EmployeeFactory.GetDuplicate(search).Count() > 0)
IsDuplicate = true;
return IsDuplicate;
}
It is a very simple method and cannot figure out where is problem. When I run to debugging and use Watch window I see the variable IsDuplicate change value. But method did not indicate type and did not return value. Where is the problem and how to fix it?
Thanks.
Continue reading...
I new in C#. I create method to return boolean value
public bool Duplicate()
{
bool IsDuplicate = false;
if (EmployeeFactory.GetDuplicate(search).Count() > 0)
IsDuplicate = true;
return IsDuplicate;
}
It is a very simple method and cannot figure out where is problem. When I run to debugging and use Watch window I see the variable IsDuplicate change value. But method did not indicate type and did not return value. Where is the problem and how to fix it?
Thanks.
Continue reading...