Exemplo n.º 1
0
 sealed class B : MB <Boolean>     { public override void To(IMapDataDestination d, object o, int i, Boolean v)
                                     {
                                         d.SetBoolean(o, i, v);
                                     }
Exemplo n.º 2
0
 public override void Map(IMapDataSource source, object sourceObject, int sourceIndex, IMapDataDestination destination, object destinationObject, int destinationIndex)
 {
     if(source.IsNull(sourceObject, sourceIndex))
     {
         destination.SetBoolean(destinationObject, destinationIndex, false);
     }
     else
     {
         destination.SetBoolean(destinationObject, destinationIndex, Convert.ToBoolean(source.GetByte(sourceObject, sourceIndex)));
     }
 }