using System; using System.Collections.Generic; using System.Text; namespace JiShe.CollectBus.Analyzers.Shared { /// /// 实体成员信息 /// public sealed class EntityMemberInfo { public string Path { get; set; } public Type Type { get; set; } private readonly Func _getter; private readonly Action _setter; public EntityMemberInfo( string path, Type type, Func getter, Action setter) { Path = path; Type = type; _getter = getter; _setter = setter; } public object GetValue(object entity) => _getter(entity); public void SetValue(object entity, object value) => _setter(entity, value); } }