MonoMobile.Views.MemberData.ConvertValue C# (CSharp) Méthode

ConvertValue() private méthode

private ConvertValue ( object value, Type targetType ) : object
value object
targetType System.Type
Résultat 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;
		}