Beispiel #1
0
        public PocoRecord(PocoAdapter adapter, object o)
        {
            if (o == null)
            {
                throw new ArgumentNullException(nameof(o));
            }
            if (!adapter.AdaptedType.IsInstanceOfType(o))
            {
                throw new ArgumentException("Object must be of assignable type", nameof(o));
            }

            Adapter = adapter;
            _object = o;
        }
Beispiel #2
0
 public PocoReader(PocoAdapter adapter, IEnumerable <object> objects)
 {
     _adapter    = adapter;
     _enumerator = objects.GetEnumerator();
 }