Solved

C# class creation

Posted on 2013-06-27
5
357 Views
Last Modified: 2013-07-22
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

0
Comment
Question by:pensiongenius
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39282456
Is this school work?
0
 

Author Comment

by:pensiongenius
ID: 39282544
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.
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39282555
OK. So then what is your question?
0
 

Accepted Solution

by:
pensiongenius earned 0 total points
ID: 39331770
no assistance is further needed with this question.
0
 

Author Closing Comment

by:pensiongenius
ID: 39345358
I figured it out.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question