Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / test-anon-104.cs
blobc258cd5c846a1b2651da68879648b292bf0e2714
1 // Compiler options: /unsafe
2 using System;
3 using System.Collections.Generic;
5 unsafe class Test
7 public static void Main ()
9 foreach (int item in GetItems ()) {
10 Console.WriteLine (item);
14 public static unsafe int GetItem ()
16 byte[] value = new byte[] { 0xDE, 0xAD, 0xBE, 0xEF };
18 fixed (byte* valueptr = value) {
19 return *(int*) valueptr;
23 public static IEnumerable<int> GetItems ()
25 yield return GetItem ();