Пример #1
0
 private static unsafe int Do_Abi_Append_7 <TAbi>(void *thisPtr, TAbi value)
 {
     try
     {
         FindAdapter(new IntPtr(thisPtr)).Append(Marshaler <T> .FromAbi(value));
     }
     catch (Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Пример #2
0
 private static unsafe int Do_Abi_Invoke <TAbi>(void *thisPtr, IntPtr sender, TAbi args)
 {
     try
     {
         global::WinRT.ComWrappersSupport.MarshalDelegateInvoke(new IntPtr(thisPtr), (global::System.Delegate invoke) =>
         {
             invoke.DynamicInvoke(MarshalInspectable.FromAbi(sender), Marshaler <T> .FromAbi(args));
         });
     }
     catch (global::System.Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Пример #3
0
            private static unsafe int Do_Abi_IndexOf_3 <TAbi>(void *thisPtr, TAbi value, out uint index, out byte __return_value__)
            {
                bool ____return_value__ = default;

                index            = default;
                __return_value__ = default;
                uint __index = default;

                try
                {
                    ____return_value__ = FindAdapter(new IntPtr(thisPtr)).IndexOf(Marshaler <T> .FromAbi(value), out __index); index = __index;
                    __return_value__   = (byte)(____return_value__ ? 1 : 0);
                }
                catch (Exception __exception__)
                {
                    global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
                    return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
                }
                return(0);
            }