rr
Size: a a a
rr
rr
ZK
P
rr
t
P
ZK
P
P
S
class Foo
{
public int a;
}
class Program
{
static void Main(string[] args)
{
Random r = new Random();
foreach (Foo item in GetArray())
{
item.a = r.Next();
}
}
public static IEnumerable GetArray()
{
Foo f = new Foo();
for (int i = 0; i < 10; i++)
{
yield return f;
Console.WriteLine(f.a);
}
}
}
P
t
ZK
t
class Foo
{
public int a;
}
class Program
{
static void Main(string[] args)
{
Random r = new Random();
foreach (Foo item in GetArray())
{
item.a = r.Next();
}
}
public static IEnumerable GetArray()
{
Foo f = new Foo();
for (int i = 0; i < 10; i++)
{
yield return f;
Console.WriteLine(f.a);
}
}
}
P
t
P
rr
class Foo
{
public int a;
}
class Program
{
static void Main(string[] args)
{
Random r = new Random();
foreach (Foo item in GetArray())
{
item.a = r.Next();
}
}
public static IEnumerable GetArray()
{
Foo f = new Foo();
for (int i = 0; i < 10; i++)
{
yield return f;
Console.WriteLine(f.a);
}
}
}