You have an Examination class in a namespace somewhere, but if you don't tell the compiler in which namespace to look, it won't know where to find that class and it will give an error.
You can either prepend the namespace to
Examination
(i.e. replacing
Examination
with
Namespace.Examination
, where
Namespace
is an actual namespace, which may contain dots).
Or, instead of that, you can add that namespace on top of your file with a
using
statement:
using NamespaceContainingExamination;
And after that, you can just use
Examination
like you did.
Namespaces (C# Programming Guide) | Microsoft Docs[
^]
using Directive (C# Reference) | Microsoft Docs[
^]