Mono.Xaml.XamlParser.IsMarkupExpression C# (CSharp) Méthode

IsMarkupExpression() private méthode

private IsMarkupExpression ( string str ) : bool
str string
Résultat bool
		private bool IsMarkupExpression (string str)
		{
			int open_stache = str.IndexOf ('{');
			if (open_stache < 0)
				return false;
			for (int i = 0; i < open_stache; i++) {
				if (!Char.IsWhiteSpace (str [i]))
					return false;
			}
			
			int close_stache = str.LastIndexOf ('}');
			if (close_stache < 0)
				return false;
			for (int i = str.Length - 1; i > close_stache; i--) {
				if (!Char.IsWhiteSpace (str [i]))
					return false;
			}

			return true;
		}