Exemple #1
0
        public bool CanMarshal(Type type)
        {
            if (!IsList(type))
            {
                return(false);
            }
            Type elementType = type.GetProperty("Item").PropertyType;

            return(MarshalingManager.IsKnownType(elementType));
        }
        public bool CanMarshal(Type type)
        {
            if (!type.IsEnum)
            {
                return(false);
            }
            Type underlyingType = Enum.GetUnderlyingType(type);

            return(MarshalingManager.IsKnownType(underlyingType));
        }
Exemple #3
0
        public bool CanMarshal(Type type)
        {
            if (!type.IsArray)
            {
                return(false);
            }
            Type elementType = type.GetElementType();

            return(MarshalingManager.IsKnownType(elementType));
        }