CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2015
    Posts
    1

    Serializable class in C# app

    Hi all!

    I am new to this forum and this is my first post. I am currently taking a diploma course in Visual C# Programming. So far so good! But I got stuck on one of the assignments. This is the assignment:
    "In memory this information should be managed by objects of class
    logon. The items listed in the table above should be represented as attributes of the class. This class should be serializable, and should be stored in the file as logon objects. All logon attempts whether they are successful or not should be recorded in the log file. The log file should be name loginfo.dat. All records should be appended to the end of the file. The file should keep records for a maximum of 10 days. Records older than 10 days old should be regarded as obsolete and should be deleted automatically.
    Use LINQ to indentify all records greater than 10 days old."

    I have tried many different ways of achieving this, but failed miserably. I tried to follow different online tutorials as well as the course notes but nothing seems to be working for me.

    This is the code that I have so far: http://pastebin.com/WezNtUaw

    Any advice is greatly welcomed!

    Thanks!

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Serializable class in C# app

    Please zip up your project and files and attach it here. Most of us don't like to click on external sites to get source code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured