Esempio n. 1
0
        internal static bool ParseBooleanExtendedProperty(this SchemaObjectBase schemaObjectBase, string extendedProperty)
        {
            if (schemaObjectBase == null)
            {
                return(false);
            }
            ExtendedPropertyCollection loadedExtendedProperties = schemaObjectBase.GetLoadedExtendedProperties();

            if (!loadedExtendedProperties.Contains(extendedProperty))
            {
                return(false);
            }
            bool result;

            bool.TryParse(loadedExtendedProperties[extendedProperty].Value.ToString(), out result);
            return(result);
        }
Esempio n. 2
0
        internal static bool ParseBooleanExtendedProperty(SchemaObjectBase schemaObjectBase, string extendedProperty)
        {
            if (schemaObjectBase == null)
            {
                return(false);
            }

            var properties = schemaObjectBase.GetLoadedExtendedProperties();

            if (!properties.Contains(extendedProperty))
            {
                return(false);
            }

            bool temp = false;

            bool.TryParse(properties[extendedProperty].Value.ToString(), out temp);

            return(temp);
        }