// ===================================================================================
 //                                                                          Value Type
 //                                                                          ==========
 public void RegisterBasicValueType(Type keyType, IValueType valueType)
 {
     AssertNotLocked();
     if (_log.IsInfoEnabled)
     {
         _log.Info("...Registering basic valueType: keyType=" + keyType + " valueType=" + valueType);
     }
     ValueTypes.RegisterValueType(keyType, valueType);
 }
示例#2
0
        public static void AddValueType()
        {
            IValueType objType = ValueTypes.GetValueType(null);

            if (ValueTypes.GetValueType(typeof(UInt32)) == objType)
            {
                ValueTypes.RegisterValueType(typeof(UInt32), UINT32);
            }
            if (ValueTypes.GetValueType(typeof(Nullable <UInt32>)) == objType)
            {
                ValueTypes.RegisterValueType(typeof(Nullable <UInt32>), NULLABLE_UINT32);
            }
        }