14 lines
313 B
C#
14 lines
313 B
C#
|
|
namespace Stary.Evo
|
||
|
|
{
|
||
|
|
public interface ICanGetData: IBelongToArchitecture
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
public static class CanGetDataExtension
|
||
|
|
{
|
||
|
|
public static T GetData<T>(this ICanGetData self) where T : class, IData
|
||
|
|
{
|
||
|
|
return self.GetArchitecture().GetData<T>();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|