public string Path { get; set; }
}
class Check : ICheck
{
string ICheck.Path {
//I did not write my property code here to make my message shorter
}
}
class MainClass
{
static void Main(string[] args) {
Check check = new();
check.// i need my property here
}
}
make sure it is just as accessible; use public string Path in class Check
I tried, it gives me an error
ig check should be in ICheck
did you really mean to put public in the interface?
You're doing explicit interface implementation when writing string ICheck.Path instead of string Path This means you can only access it via a ICheck instance/cast.
Tysm!! I tried it and its fixed now
Thanks; my example 'fixed' this but I didn't know the associated words/terminology 😋
Обсуждают сегодня