I've got a class that implements an interface:
public class SQLiteHHSDBUtils : IHHSDBUtils
{
void IHHSDBUtils.SetupDB()
{
. . .
if (!TableExists("AppSettings"))
. . .
bool IHHSDBUtils.TableExists(string tableName)
{
. . .
It can't find its own brother sitting right below it (the if (!TableExists()
):
The name 'TableExists' does not exist in the current context
How can it / why does it not see it?
You have an explicit interface implementation. You can't access your interface methods directly unless you cast current instance to interface type:
From 13.4.1 Explicit interface member implementations