BeeMobile4.net

From the monthly archives: December 2018

We are pleased to present below all posts archived in 'December 2018'. If you still can't find what you are looking for, try using the search box.

David Jones's avatar

UWP C#: Reflection: Get list<subclass> from list<class>.


In creating a custom  XAML UserControl, a need arose to make use of generics with the UserControl class. The control is based upon the XAML AutoSuggestionBox control and  implements a quick lookup of a user from an app supplied list of users. The control uses Linq queries to efficiently search through a list of  type User using Name and Id properties. The search can be on partial name completion or on user’s initials. So as to allow the use of a broad range of  list types for the supplied user list, as provided in the UserControl’s hosting app, the app’s user type needs to implement a specific set of properties that are used in queries and so it must implement a specific interface (called IUser). It would have been nice to have parameterised the UserControl class using generics to specify the list of users’ data type as the apps user type and constrain it to implement the interface using generics. But the custom UserControl class does not permit generics.   Consider the following: ...

Read the rest of entry »

Meta

Archive

Search

Recent Comments

  1. Re: SurfPad: Index

    this is a good post that you have written you can add more about the outlook or some other technology...

    -- Configure Outlook 2016

  2. Re: Azure Sphere - Hands on!!

    Cool

    -- David Jones

  3. Re: Windows 10 IoT Core: Shutdown and Reboot the Raspberry Pi

    Bruce, I noticed that you are sending a REST web request for controlling the pi. I looked online a for...

    -- Waleed Elmandouh

  4. Re: Strange HP Laptop Keyboard Fix–It worked for me.

    Eh its happened again! Yes [Fn] and [ctrl] keys are swapped. So time to shutdown and remove the battery...

    -- David Jones

  5. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    Thank you for the workaround. I just tried it on my Raspberry Pi 3 running Win 10 IoT. It solved the...

    -- Paul

  6. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    Thank you for the workaround. I just tried it on my Raspberry Pi 3 running Win 10 IoT. It solved the...

    -- Paul

  7. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    When the BLE dongle is inserted it shows up on the default startup app main page as two entries: USB...

    -- David Jones

  8. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    The above "comment" is the Device tree on Device Portal-Devices for the Bluetooth Driver/s with the ...

    -- David Jones

  9. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    >HTREE\ROOT\0 >ACPI ARM-based PC >Microsoft ACPI-Compiant System ...

    -- David Jones

  10. Re: Bluetooth Low Energy on Windows 10 Creators Edition and a RPi3 issue.

    FYI: On RPI2 ========== When my USB BLE Dongle is plugged in I get two entries on the main page for the...

    -- David Jones

Turkish porno izle video site in rokettubeporno izle