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); }
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); }