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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.