From bf5a179bf41eca8e097f893d112aba1b4d8547dc Mon Sep 17 00:00:00 2001 From: Simon G Date: Wed, 14 Apr 2021 10:40:01 +0200 Subject: [PATCH] - add enumerable extensions --- Mystify/Enumerables.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Mystify/Enumerables.cs diff --git a/Mystify/Enumerables.cs b/Mystify/Enumerables.cs new file mode 100644 index 0000000..1b75b98 --- /dev/null +++ b/Mystify/Enumerables.cs @@ -0,0 +1,14 @@ +// Author: Gockner, Simon +// Created: 2021-04-14 +// Copyright(c) 2021 SimonG. All Rights Reserved. + +using System.Collections.Generic; +using System.Collections.ObjectModel; + +namespace Mystify +{ + public static class Enumerables + { + public static ObservableCollection ToObservableCollection(this IEnumerable enumerable) => new(enumerable); + } +} \ No newline at end of file