public static ObjectValueToPropertyValueSettings GetConfig()
		{
			ObjectValueToPropertyValueSettings settings = (ObjectValueToPropertyValueSettings)ConfigurationBroker.GetSection("objectValueToPropertyValueSettings");

			if (settings == null)
				settings = new ObjectValueToPropertyValueSettings();

			return settings;
		}
Example #2
0
        public static ObjectValueToPropertyValueSettings GetConfig()
        {
            ObjectValueToPropertyValueSettings settings = (ObjectValueToPropertyValueSettings)ConfigurationBroker.GetSection("objectValueToPropertyValueSettings");

            if (settings == null)
            {
                settings = new ObjectValueToPropertyValueSettings();
            }

            return(settings);
        }
Example #3
0
        public static IObjectValueToPropertyValue GetObjectValueConverter(Type type)
        {
            IObjectValueToPropertyValue result = null;

            result = ObjectValueToPropertyValueSettings.GetConfig().GetTypeEqualToConvertors().GetEqualToConverter(type);

            if (result == null)
            {
                result = _BuiltInEqualTypeObjectValueConverters.GetEqualToConverter(type);
            }

            if (result == null)
            {
                result = ObjectValueToPropertyValueSettings.GetConfig().GetTypeIsConvertors().GetIsConverter(type);
            }

            if (result == null)
            {
                result = _BuiltInIsTypeObjectValueConverters.GetIsConverter(type);
            }

            return(result);
        }