21 lines
410 B
C#
21 lines
410 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ObervableCollectionSample
|
|
{
|
|
public class Person
|
|
{
|
|
public string Name { get; set; }
|
|
public int Age { get; set; }
|
|
|
|
public Person(string name)
|
|
{
|
|
this.Name = name;
|
|
this.Age = new Random().Next(20, 60);
|
|
}
|
|
}
|
|
}
|