MonoMobile.Views.MemberData.ConvertValue C# (CSharp) Method

ConvertValue() private method

private ConvertValue ( object value, Type targetType ) : object
value object
targetType System.Type
return object
		private object ConvertValue(object value, Type targetType)
		{
			if (value != null && value.GetType() == targetType)
				return value;

			object convertedValue = value;
			
			try 
			{
				convertedValue = Convert(convertedValue, targetType, ValueConverter);
			}
			catch (NotImplementedException)
			{
			}

			return convertedValue;
		}