Files
speckle-sharp-connectors/Sdk/Speckle.Converters.Common/NameAndRankValueAttribute.cs
T
Adam Hathcock 94104c2365 NameAndRankValue now uses a type to get FullName to avoid conflicts (#475)
* NameAndRankValue now uses a type to get FullName to avoid conflicts

* Full namespace for tests
2025-01-10 13:59:59 +00:00

13 lines
423 B
C#

namespace Speckle.Converters.Common;
// POC: maybe better to put in utils/reflection
[AttributeUsage(AttributeTargets.Class)]
public sealed class NameAndRankValueAttribute(Type type, int rank) : Attribute
{
// DO NOT CHANGE! This is the base, lowest rank for a conversion
public const int SPECKLE_DEFAULT_RANK = 0;
public Type Type { get; private set; } = type;
public int Rank { get; private set; } = rank;
}