+using System;
using System.Diagnostics;
namespace Tizen.NUI.Xaml
{
[DebuggerDisplay("{NamespaceURI}:{LocalName}")]
- internal struct XmlName
+ internal struct XmlName : IEquatable<XmlName>
{
public static readonly XmlName _CreateContent = new XmlName("_", "CreateContent");
public static readonly XmlName xKey = new XmlName("x", "Key");
return NamespaceURI == other.NamespaceURI && LocalName == other.LocalName;
}
+ public bool Equals(XmlName other)
+ => NamespaceURI == other.NamespaceURI && LocalName == other.LocalName;
+
public bool Equals(string namespaceUri, string localName)
=> Equals(new XmlName(namespaceUri, localName));
/// <summary>
/// [Draft] A type that represents a layout length. Currently, this implies pixels, but could be extended to handle device dependant sizes, etc.
/// </summary>
- public struct LayoutLength
+ public struct LayoutLength : IEquatable<LayoutLength>
{
private float _value;