private static unsafe int Do_Abi_First_0(IntPtr thisPtr, out IntPtr __return_value__)
 {
     __return_value__ = default;
     try
     {
         var __this = global::WinRT.ComWrappersSupport.FindObject <global::System.Collections.Generic.IEnumerable <T> >(thisPtr);
         __return_value__ = MarshalInterface <global::System.Collections.Generic.IEnumerator <T> > .FromManaged(__this.GetEnumerator());
     }
     catch (Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Пример #2
0
            private static unsafe int Do_Abi_GetView_2(IntPtr thisPtr, out IntPtr __return_value__)
            {
                global::System.Collections.Generic.IReadOnlyList <T> ____return_value__ = default;
                __return_value__ = default;

                try
                {
                    ____return_value__ = FindAdapter(thisPtr).GetView();
                    __return_value__   = MarshalInterface <global::System.Collections.Generic.IReadOnlyList <T> > .FromManaged(____return_value__);
                }
                catch (Exception __exception__)
                {
                    global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
                    return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
                }
                return(0);
            }
Пример #3
0
            private static int Do_Abi_Get_Source(IntPtr thisPtr, uint index, out IntPtr value)
            {
                value = default;

                try
                {
                    var source = ComWrappersSupport.FindObject <global::Windows.Graphics.Effects.Interop.IGraphicsEffectD2D1Interop>(thisPtr).GetSource(index);

                    value = MarshalInterface <global::Windows.Graphics.Effects.IGraphicsEffectSource> .FromManaged(source);
                }
                catch (Exception ex)
                {
                    return(Marshal.GetHRForException(ex));
                }

                return(0);
            }