/// <summary>
 /// A helper method that exposed in our System.Private.MCG
 /// contract assembly to access the internal ExtractHandler method
 /// There are other options such as
 /// 1) define another EventRegistrationTokenTable.Extracthandler in
 /// System.Private.MCG assembly. Unfortunately this doesn't work because
 /// compiler sees two EventRegistrationTokenTable classes in two contracts
 /// 2) make a Extracthandler an extention method. This requires having a "using" statement for the
 /// extension methods and doesn't make things easier to understand
 /// </summary>
 public static T ExtractHandler <T>(System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable <T> table, System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken token) where T : class
 {
     return(table.ExtractHandler(token));
 }
Esempio n. 2
0
 public static System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable <T> GetOrCreateEventRegistrationTokenTable(ref System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable <T> refEventTable)
 {
     throw null;
 }