/// <summary> /// Initializes a new instance of the IDAccessor class. /// </summary> /// <param name="propInfo">The properties to access.</param> public IDAccessor(IEnumerable <ClassPropInfo> propInfo) { _propInfo = propInfo.ToList(); if (_propInfo.Count == 1) { MemberType = _propInfo.First().MemberType; } else { MemberType = GetTupleType(_propInfo.Count).MakeGenericType(MemberTypes.ToArray()); } }