Hi i am a beginner in c# programming. Can anybody tell me what happens in the code lines for this class :

using System;
using System.Collections.Generic;
using System.Text;
using Wilson.ORMapper;
namespace WindowsApplication3.Data
{
public class LogEntry : DataObject
{
public int referringID;
private string type;
private DataObject owner;
private string text;
public string Text
{
get { return this.text; }
set { this.text = value; }
}
private DateTime time = DateTime.Now;
public DateTime Time
{
get { return this.time; }
set { this.time = value; }
}
public LogEntry()
{
DataManager.Current.Engine.StartTracking(this, InitialState.Inserted);
}
public LogEntry(DataObject owner) : this()
{
this.owner = owner;
this.referringID = owner.ID;
this.type = this.owner.GetType().ToString();
}
public override string ToString()
{
return this.Text;
}
}
}

You've got an odd using statement in there:

using Wilson.ORMapper;

Do you have a particular question about the code, or a method within the class exactly?

This article has been dead for over six months. Start a new discussion instead.