Example #1
0
            private static unsafe int Do_Abi_GetAt_0 <TAbi>(void *thisPtr, uint index, out TAbi __return_value__)
            {
                T ____return_value__ = default;

                __return_value__ = default;
                try
                {
                    ____return_value__ = FindAdapter(new IntPtr(thisPtr)).GetAt(index);
                    __return_value__   = (TAbi)Marshaler <T> .FromManaged(____return_value__);
                }
                catch (Exception __exception__)
                {
                    global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
                    return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
                }
                return(0);
            }
Example #2
0
        private static unsafe int Do_Abi_get_Value_0 <TAbi>(void *thisPtr, out TAbi __return_value__)
        {
            T ____return_value__ = default;

            __return_value__ = default;

            try
            {
                ____return_value__ = (T)global::WinRT.ComWrappersSupport.FindObject <object>(new IntPtr(thisPtr));
                __return_value__   = (TAbi)Marshaler <T> .FromManaged(____return_value__);
            }
            catch (global::System.Exception __exception__)
            {
                global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
                return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
            }
            return(0);
        }