Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
StringEquals.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Globalization;
5 
6 namespace SiliconStudio.Presentation.ValueConverters
7 {
8  /// <summary>
9  /// This converter compares the given string with the string passed as parameter, and returns <c>true</c> if they are equal, <c>false</c> otherwise.
10  /// </summary>
11  public class StringEquals : OneWayValueConverter<StringEquals>
12  {
13  /// <inheritdoc/>
14  public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
15  {
16  return string.Equals((string)value, (string)parameter);
17  }
18  }
19 }
override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Definition: StringEquals.cs:14
This converter compares the given string with the string passed as parameter, and returns true if the...
Definition: StringEquals.cs:11