coolerfarmer

Untitled

Jun 18th, 2014
5,502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. internal struct NewsPost
  2. {
  3. private readonly int _ID;
  4. public int ID {
  5. get { return _ID; }
  6. }
  7.  
  8. private readonly string _Name;
  9. public string Name {
  10. get { return _Name; }
  11. }
  12.  
  13. private readonly System.DateTime _Time;
  14. public System.DateTime Time {
  15. get { return _Time; }
  16. }
  17.  
  18. public NewsPost(object id, object name, object time)
  19. {
  20. _ID = (int)id;
  21. _Name = (string)name;
  22. _Time = (System.DateTime)time;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment