AZ
public interface IUnit {
double ToMeters();
}
public static class XUnit {
public static double Add(this T self, T other) where T : IUnit =>
self.ToMeters() + other.ToMeters();
}
Size: a a a
AZ
public interface IUnit {
double ToMeters();
}
public static class XUnit {
public static double Add(this T self, T other) where T : IUnit =>
self.ToMeters() + other.ToMeters();
}
p
p
AB
p
p
p
p
AZ
p
AZ
AZ
p
AZ
AZ
RP
AB
AB
RP
RP