示例#1
0
            public void Map(
                IMapDataSource source, object sourceObject, int sourceIndex,
                IMapDataDestination dest, object destObject, int destIndex)
            {
                if (source.IsNull(sourceObject, sourceIndex))
                {
                    dest.SetNull(destObject, destIndex);
                }
                else
                {
                    MapSetData <T> .MB <T> setter = MapSetData <T> .I;
                    MapGetData <T> .MB <T> getter = MapGetData <T> .I;

                    setter.To(dest, destObject, destIndex,
                              getter.From(source, sourceObject, sourceIndex));
                }
            }