Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Gruhlum
Posts
Comments
C
C#
•
Created by vanille. on 1/15/2024 in
#help
Change function behavior depending on class' generic type.
sounds like a job for extensions.
public static class
Extensions
{
public static
Color
Lerp
(
this
Color color
)
{
return
color;
}
}
public static class
Extensions
{
public static
Color
Lerp
(
this
Color color
)
{
return
color;
}
}
15 replies