Ejemplo n.º 1
0
 public override bool IsIndirectedWithinSlot(ITypeHandler4 handler)
 {
     if (Handlers4.IsUntyped(handler))
     {
         return(false);
     }
     return(Handlers4.IsVariableLength(handler) && Handlers4.IsValueType(handler));
 }
Ejemplo n.º 2
0
        private bool HasValueTypeBehavior(object obj)
        {
            bool isSimple = Platform4.IsSimple(obj.GetType());

            if (isSimple)
            {
                return(true);
            }
            IReflectClass reflectClass = _container.Reflector().ForObject(obj);

            if (Platform4.IsStruct(reflectClass))
            {
                return(true);
            }
            bool isEnum = Platform4.IsEnum(_container.Reflector(), reflectClass);

            if (isEnum)
            {
                return(true);
            }
            ITypeHandler4 typeHandler = _container.TypeHandlerForClass(reflectClass);

            return(Handlers4.IsValueType(typeHandler));
        }