コード例 #1
0
ファイル: IControllerHost.cs プロジェクト: tretikoff/Hogwarts
 public static T GetChildViewController <T>(this IControllerHost host) where T : Fragment, new()
 {
     return(host.GetChildViewController <T>(typeof(T).FullName));
 }
コード例 #2
0
ファイル: IControllerHost.cs プロジェクト: tretikoff/Hogwarts
 public static T GetChildViewController <T>(this IControllerHost host, string key) where T : Fragment, new()
 {
     return(host.GetChildViewController(key, () => new T()));
 }
コード例 #3
0
ファイル: IControllerHost.cs プロジェクト: tretikoff/Hogwarts
 public static T GetChildViewController <T>(this IControllerHost host, string key, Func <T> factory) where T : Fragment
 {
     return(host.ChildControllers.GetChildViewController(key, factory));
 }