diff --git a/samples/snippets/standard/buffers/memory-t/void-returning-async/void-returning-async.cs b/samples/snippets/standard/buffers/memory-t/void-returning-async/void-returning-async.cs deleted file mode 100644 index f7aeeb9e3e2..00000000000 --- a/samples/snippets/standard/buffers/memory-t/void-returning-async/void-returning-async.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Buffers; -using System.IO; -using System.Threading.Tasks; - -public class Example -{ - // - // An acceptable implementation. - static void Log(ReadOnlyMemory message) - { - // Run in the background so that we don't block the main thread while performing IO. - Task.Run(() => { - string defensiveCopy = message.ToString(); - StreamWriter sw = File.AppendText(@".\input-numbers.dat"); - sw.WriteLine(defensiveCopy); - sw.Flush(); - }); - } - // - - // user code - public static void Main() - { - using (var owner = MemoryPool.Shared.Rent()) - { - var memory = owner.Memory; - var span = memory.Span; - while (true) - { - string? s = Console.ReadLine(); - - if (s is null) - return; - - int value = Int32.Parse(s); - if (value < 0) - return; - - int numCharsWritten = ToBuffer(value, span); - Log(memory.Slice(0, numCharsWritten)); - } - } - } - - private static int ToBuffer(int value, Span span) - { - string strValue = value.ToString(); - int length = strValue.Length; - strValue.AsSpan().CopyTo(span.Slice(0, length)); - return length; - } -} diff --git a/samples/snippets/standard/buffers/memory-t/void-returning-async/void-returning-async.csproj b/samples/snippets/standard/buffers/memory-t/void-returning-async/void-returning-async.csproj deleted file mode 100644 index 74957625102..00000000000 --- a/samples/snippets/standard/buffers/memory-t/void-returning-async/void-returning-async.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net6.0 - enable - void_returning - - - diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_1.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_1.xaml deleted file mode 100644 index d39bcc6659d..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_1.xaml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Dock = "Top" - Dock = "Bottom" - Dock = "Left" - This TextBox "fills" the remaining space. - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_10.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_10.xaml deleted file mode 100644 index 2e41d34bb93..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_10.xaml +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_11.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_11.xaml deleted file mode 100644 index ffd975b968b..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_11.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_12.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_12.xaml deleted file mode 100644 index 397418569d7..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_12.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_13.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_13.xaml deleted file mode 100644 index dddaab58338..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_13.xaml +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_14.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_14.xaml deleted file mode 100644 index 58ddac80256..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_14.xaml +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_15.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_15.xaml deleted file mode 100644 index 397418569d7..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_15.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_16.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_16.xaml deleted file mode 100644 index 956a5aa5fc1..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_16.xaml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_18.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_18.xaml deleted file mode 100644 index 1df9168aa48..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_18.xaml +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_19.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_19.xaml deleted file mode 100644 index c4d2a472c00..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_19.xaml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_20.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_20.xaml deleted file mode 100644 index 2055de5c37f..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_20.xaml +++ /dev/null @@ -1,14 +0,0 @@ - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_21.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_21.xaml deleted file mode 100644 index 397418569d7..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_21.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_22.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_22.xaml deleted file mode 100644 index 6a167891557..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_22.xaml +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_23.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_23.xaml deleted file mode 100644 index 24e8ba41d9b..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_23.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_24.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_24.xaml deleted file mode 100644 index df6c3150eb9..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_24.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_25.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_25.xaml deleted file mode 100644 index 397418569d7..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_25.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_26.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_26.xaml deleted file mode 100644 index 0ea34daa5ae..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_26.xaml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_27.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_27.xaml deleted file mode 100644 index d5dabf9690e..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_27.xaml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_28.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_28.xaml deleted file mode 100644 index 397418569d7..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_28.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_29.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_29.xaml deleted file mode 100644 index de5d83e2499..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_29.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_3.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_3.xaml deleted file mode 100644 index c098990c276..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_3.xaml +++ /dev/null @@ -1,4 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_30.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_30.xaml deleted file mode 100644 index d70379d4cee..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_30.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_31.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_31.xaml deleted file mode 100644 index 0ce4119ef90..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_31.xaml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_32.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_32.xaml deleted file mode 100644 index 3061653a425..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_32.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_33.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_33.xaml deleted file mode 100644 index 767cbff145e..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_33.xaml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - Up - Down - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_37.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_37.xaml deleted file mode 100644 index 57d7245d9ae..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_37.xaml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_4.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_4.xaml deleted file mode 100644 index 257b2613299..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_4.xaml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_5.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_5.xaml deleted file mode 100644 index 397418569d7..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_5.xaml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_7.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_7.xaml deleted file mode 100644 index a6884bc7e63..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_7.xaml +++ /dev/null @@ -1,7 +0,0 @@ - - - \ No newline at end of file diff --git a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_9.xaml b/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_9.xaml deleted file mode 100644 index 0f7203e075f..00000000000 --- a/samples/snippets/xaml/wpf/introduction-to-wpf/introduction-to-wpf_9.xaml +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file