Guest User

Untitled

a guest
Apr 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. class tag
  2. {
  3. private string _title, _artist, _album, _comment,_year, _genere;
  4. private string _id = "TAG";
  5.  
  6.  
  7. public string Title
  8. {
  9. get { return this._title.Replace(" ",""); }
  10.  
  11. set { this._title = value; }
  12.  
  13. }
  14.  
  15. public string Artist
  16. {
  17. get { return this._artist.Replace(" ", ""); }
  18. set { this._artist = value; }
  19. }
  20.  
  21. public string Album
  22. {
  23. get { return this._album.Trim(); }
  24. set { this._album = value; }
  25. }
  26.  
  27. public string Year
  28. {
  29. get { return this._year ; }
  30. set { this._year = value; }
  31. }
  32.  
  33. public string Comment
  34. {
  35. get { return this._comment.Trim(); }
  36. set { this._comment = value; }
  37. }
  38.  
  39. public string Genre
  40. {
  41. get { return this._genere.Trim(); }
  42. set { this._genere = value; }
  43. }
  44.  
  45. public string Id
  46. {
  47. get { return this._id; }
  48. }
  49.  
  50. public override string ToString()
  51. {
  52. string str;
  53. str = Id + Title + Artist + Album + Year + Comment + Genre;
  54. return str;
  55. }
  56. }
  57. }
Add Comment
Please, Sign In to add comment