1234567891011121314151617181920212223242526 |
- namespace KYFramework;
- public interface IInvoke
- {
- Type Type { get; }
- }
- public abstract class AInvokeHandler<A> : IInvoke where A : struct
- {
- public Type Type
- {
- get { return typeof(A); }
- }
- public abstract void Handle(A a);
- }
- public abstract class AInvokeHandler<A, T> : IInvoke where A : struct
- {
- public Type Type
- {
- get { return typeof(A); }
- }
- public abstract T Handle(A a);
- }
|