Tag:C# get interface

  • C# custom attribute get interface implementation example code

    Time:2021-7-31

    General interface implementation polymorphism Define interface interface Ipeople { void say(); } Define implemented classes public class man : Ipeople { public void say() { MessageBox.Show(“man”); } } public class woman : Ipeople { public void say() { MessageBox.Show(“woman”); } } General implementation method Upgrade Add custom (there are many online) Implementation class Call method […]