This class provides a mechanism to intercept calls to a IPrimitiveMap instance and perform validation, handle type conversion, or some other function necessary to use the PrimitiveMap in a Message or other NMS object. Be default this class enforces the standard conversion policy for primitive types in NMS shown in the table below: | | boolean byte short char int long float double String byte[] |---------------------------------------------------------------------- |boolean | X X |byte | X X X X X |short | X X X X |char | X X |int | X X X |long | X X |float | X X X |double | X X |String | X X X X X X X X |byte[] | X |----------------------------------------------------------------------
상속: IPrimitiveMap
예제 #1
0
 public MapMessage(PrimitiveMap body)
     : base()
 {
     this.body = body;
     this.typeConverter = new PrimitiveMapInterceptor(this, this.body);
 }
예제 #2
0
 public override void ClearBody()
 {
     this.body = null;
     this.typeConverter = null;
     base.ClearBody();
 }