Esempio n. 1
0
 sealed class I32 : MB <Int32>       { public override void To(IMapDataDestination d, object o, int i, Int32 v)
                                       {
                                           d.SetInt32(o, i, v);
                                       }
Esempio n. 2
0
 sealed class EI32 <E> : MB <E>         { public override void To(IMapDataDestination d, object o, int i, E v)
                                          {
                                              d.SetInt32(o, i, (Int32)(object)v);
                                          }
Esempio n. 3
0
 public override void Map(IMapDataSource source, object sourceObject, int sourceIndex, IMapDataDestination destination, object destinationObject, int destinationIndex)
 {
     if(source.IsNull(sourceObject, sourceIndex))
     {
         destination.SetInt32(destinationObject, destinationIndex, 0);
     }
     else
     {
         destination.SetInt32(destinationObject, destinationIndex, Convert.ToInt32(source.GetString(sourceObject, sourceIndex)));
     }
 }