在C#中,是否可以创建一个通用方法并为给定类型添加具体实现?例如:
void Foo<T>(T value) {
//add generic implementation
}
void Foo<int>(int value) {
//add implementation specific to int type
}