private List <TrackingMember> GetObjectMembers(object obj) { var list = new TrackingMembersList(); ObjectMapperManager.DefaultInstance.GetMapperImpl(obj.GetType(), null, new MappingConfiguration()).Map(obj, null, list); return(list.TrackingMembers); }
private List<TrackingMember> GetObjectMembers(object Obj) { var type = Obj.GetType(); var fields = new TrackingMembersList(); _mapManager.GetMapperImpl( type, null, new MappingConfiguration() ).Map(Obj, null, fields); return fields.TrackingMembers; }
private List <TrackingMember> GetObjectMembers(object Obj) { var type = Obj.GetType(); var fields = new TrackingMembersList(); _mapManager.GetMapperImpl( type, null, new MappingConfiguration() ).Map(Obj, null, fields); return(fields.TrackingMembers); }
/// <summary> /// Gets the object members. /// </summary> /// <param name="obj">The obj.</param> /// <returns>List{TrackingMember}.</returns> private List <TrackingMember> GetObjectMembers(object obj) { var type = obj?.GetType(); while (type != null && type.Assembly.IsDynamic) { type = type.BaseType; } var fields = new TrackingMembersList(); this._mapManager.GetMapperImpl( type, null, new MappingConfiguration() ).Map(obj, null, fields); return(fields.TrackingMembers); }