public TupleServiceSlimObjectCaller() { _objectMembers = new(); foreach (var field in typeof(T).GetFields()) { if (CheckItemName(field.Name, out var itemNum)) { _objectMembers[itemNum] = TupleServiceSlimObjectMember.Of(field); } } }
//private readonly int _length; public TupleServiceSlimObjectCaller(TypeAccessor accessor) { _objectMembers = new(); _typeAccessor = accessor ?? throw new ArgumentNullException(nameof(accessor)); foreach (var member in accessor.GetMembers()) { if (CheckItemName(member.Name, out var itemNum)) { _objectMembers[itemNum - 1] = TupleServiceSlimObjectMember.Of(member); } } }