sealed class C : MB <Char> { public override void To(IMapDataDestination d, object o, int i, Char v) { d.SetChar(o, i, v); }
public override void Map(IMapDataSource source, object sourceObject, int sourceIndex, IMapDataDestination destination, object destinationObject, int destinationIndex) { if(source.IsNull(sourceObject, sourceIndex)) { destination.SetChar(destinationObject, destinationIndex, '\0'); } else { destination.SetChar(destinationObject, destinationIndex, Convert.ToChar(source.GetByte(sourceObject, sourceIndex))); } }