ConvertFrom() публичный Метод

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
Результат object
Пример #1
0
        protected override PropertyPath ParsePropertyPath(string piece)
        {
            var converter = new XamlTypeConverter(parser, target_element, AttributeName, typeof(PropertyPath));
            var path      = converter.ConvertFrom(piece) as PropertyPath;

            if (path == null)
            {
                Console.Error.WriteLine("Error parsing property path: '{0}'.", piece);
                return(null);
            }

            return(path);
        }
Пример #2
0
		protected override PropertyPath ParsePropertyPath (string piece)
		{
			var converter = new XamlTypeConverter (parser, target_element, AttributeName, typeof (PropertyPath));
			var path = converter.ConvertFrom (piece) as PropertyPath;

			if (path == null) {
				Console.Error.WriteLine ("Error parsing property path: '{0}'.", piece);
				return null;
			}

			return path;
		}