예제 #1
0
 public Person(int index, ReferenceDepthContext context)
 {
     this.Age               = index + 20;
     this.Address           = new Address(index, context);
     this.Alias             = new string[] { "Alias" + index };
     this.FirstName         = DataSource.Names[index];
     this.Gender            = Gender.Male;
     this.HomeNumber        = DataSource.HomePhoneNumbers[index];
     this.UnserializableSSN = DataSource.SSN[index];
     this.FavoriteHobby     = new HobbyActivity("Xbox Gaming");
 }
예제 #2
0
 public Person(int index, ReferenceDepthContext context)
 {
     this.Age = index + 20;
     this.Address = new Address(index, context);
     this.Alias = new string[] { "Alias" + index };
     this.FirstName = DataSource.Names[index];
     this.Gender = Gender.Male;
     this.HomeNumber = DataSource.HomePhoneNumbers[index];
     this.UnserializableSSN = DataSource.SSN[index];
     this.FavoriteHobby = new HobbyActivity("Xbox Gaming");
 }