Files
Skeleton/src/Algebra/FixableObjects/PostConstructionFixExtension.cs
2024-06-21 21:48:07 +08:00

11 lines
308 B
C#

namespace Skeleton.Algebra.FixableObjects;
internal static class PostConstructionFixExtension
{
internal static void PostConstructionFix<TFixable>(this TFixable obj)
where TFixable : FixableTensor
{
if (obj.GetType() == typeof(TFixable) && obj.NeedFix)
obj.Fix();
}
}