public Tuple<T1,T2> Export() where T1: class where T2 class
{
return new Tuple<T1,T2>(){ Item1 = this as T1, Item2 = this as T2}
}
public class NameColorManager
{
private Tuple<IColor,IName> _tuple;
public NameColorManager(GlobalManager m)
{
_tuple = m.Export<IColor,IName>();
_tuple.Item1.SetColor(Color.White);
}
Если с кастомным шрифтом будут проблемы, возьмется Arail Black.