Beispiel #1
0
        internal virtual bool IsValidTypeChange(StandardDataType currentType, StandardDataType newType)
        {
            // bug fix: if the new type ends up being the root type of the current (model) type, that is valid
            if (currentType != null && currentType.Equals(newType))
            {
                return(true);
            }
            IList <StandardDataType> allowedTypes = allowedMappings.SafeGet(currentType);

            return(allowedTypes != null && allowedTypes.Contains(newType));
        }