using System; namespace AntDesign { public class ClassBuilderRuleGet : ClassBuilderRule { public Func Func { get; set; } public ClassBuilderRuleGet(Func func) { Func = func; } public override string GetClass(T data) { return Func(data); } } }