View Single Post
  #1 (permalink)  
Old September 2nd, 2010, 11:19 AM
RobIOC RobIOC is offline
Registered User
 
Join Date: Sep 2010
Location: Perth Australia
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Build Error Chapter 19 RegistrationInformation

I seemed to have either entered incorrectly or misinterpreted instructions

public class RegistrationInformation
{
public RegistrationInformation()
{

}
public struct RegistrationInformation
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string SelectedEvent { get; set; }
}
}

this yields an error on the struct "member names cannot be the same as their enclosing type."

Help would be appreciated.Thanks.