-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix generic bulk ByInteface problem for issue #148
- Loading branch information
Showing
3 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Grace.Tests.Classes.Simple | ||
{ | ||
public interface ICommand<T> | ||
{ | ||
void DoSomething(T value); | ||
} | ||
|
||
public abstract class BaseCommand<T> : ICommand<T> | ||
{ | ||
public abstract void DoSomething(T value); | ||
} | ||
|
||
public class CommandA : BaseCommand<int> | ||
{ | ||
public override void DoSomething(int value) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public class CommandB : BaseCommand<string> | ||
{ | ||
public override void DoSomething(string value) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public class CommandC : BaseCommand<double> | ||
{ | ||
public override void DoSomething(double value) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters