Link to home
Start Free TrialLog in
Avatar of pensiongenius
pensiongeniusFlag for United States of America

asked on

C# class creation

I need to create a C# class with the following properties.  I am a novice in C#

{

    //This class should have the following properties
    //ID, Firstname, Lastname, Collection of Addresses, Email Address, Password, LastPurchased
    //Please decorate with Data Annotations. 
    //FirstName max length is 50, mandatory
    //Lastname max length is 50, mandatory
    //Email Address max length is 150, not mandatory
    //Password max length is 50, mandatory
    //LastPurchased not mandatory

    public class Customer
    {






    }





    }

    //This class should have the following properties
    //ID, AddressLine1, AddressLine2, City, State, Zip, Address Type
    //Please decorate with Data Annotations. 
    //AddressLine1 max length is 250, mandatory
    //AddressLine2 max length is 250, not mandatory
    //City max length is 100, mandatory
    //State max length is 2, mandatory
    //Zip max length is 10, not mandatory
    //Address Type is an enum field (please create with enum value of Home Address, Work Address, Mailing Address
    public class Address
    {



   }

Open in new window

Avatar of kaufmed
kaufmed
Flag of United States of America image

Is this school work?
Avatar of pensiongenius

ASKER

No, but it is a challenge from a friend, this is only the first part.  He said I could use any resources I had at my disposal.  I am putting a similar challenge out to him in VB.net.
OK. So then what is your question?
ASKER CERTIFIED SOLUTION
Avatar of pensiongenius
pensiongenius
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I figured it out.