public override void Map(IMapDataSource source, object sourceObject, int sourceIndex, IMapDataDestination destination, object destinationObject, int destinationIndex) { if(source.IsNull(sourceObject, sourceIndex)) { destination.SetNullableGuid(destinationObject, destinationIndex, null); } else { destination.SetNullableGuid(destinationObject, destinationIndex, source.GetNullableGuid(sourceObject, sourceIndex)); } }
sealed class NG : MB <Guid?> { public override Guid?From(IMapDataSource s, object o, int i) { return(s.GetNullableGuid(o, i)); }