TagHelper

Name Value
Assembly Catel.Core
Namespace Catel
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class TagHelper

Helper class for comparing tags.

Methods

AreTagsEqual(object firstTag, object secondTag)

Compares the firstTag with the secondTag. This method is introduced because a string comparison fails when using ==.

Parameters

Name Description
firstTag The first tag.
secondTag The second tag.

Returns

true if the tags are equal; otherwisefalse.

Remarks

When both tags arenull, the tags are considered equal.

ToString(object tag)

Returns a that represents the tag. This method also handlesnull, in that case it will return “null”.

Parameters

Name Description
tag The tag.

Returns

A that represents this instance.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion