954,180 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

C# beginner

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;
}
}
}
yibman
Newbie Poster
1 post since May 2006
Reputation Points: 10
Solved Threads: 0
 

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?

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You