SoFunction
Updated on 2025-03-07

C# determines whether a class implements an interface.


   B b = new B();
  ISay say = b as ISay;
            if (say != null)
            {
("Class B implements interface ISay");
            }