C#反射机制
, , . , ! ! , . , a, dll dll dll dll dll dll 未知 dll dll. dll dll Sport.cs. using System; public abstract class Sport { protected string name; public abstract string GetDuration(); public abstract string GetName(); } csc /t:library Sport.cs SomeSports.cs using System; public class Football : Sport { public Football() { name = "Football"; } public override string GetDuration() { return "four 15 minute quarters"; } public override string GetName() { return name; } } public class Hockey : Sport { public Hockey() { name = "Hockey"; } public override string GetDuration() { return "three 20 minute