Lottie-Windows/source/WinCompData/CompositionEffectSourcePara...

38 строки
974 B
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
namespace CommunityToolkit.WinUI.Lottie.WinCompData
{
[MetaData.UapVersion(2)]
#if PUBLIC_WinCompData
public
#endif
sealed class CompositionEffectSourceParameter
{
public CompositionEffectSourceParameter(string name)
{
Name = name;
}
public string Name { get; }
public override bool Equals(object? obj)
{
if (!(obj is CompositionEffectSourceParameter))
{
return false;
}
return ((CompositionEffectSourceParameter)obj).Name.Equals(Name);
}
public override int GetHashCode()
{
return EqualityComparer<string>.Default.GetHashCode(Name);
}
}
}