944,174 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2811
  • C# RSS
May 6th, 2006
0

C# beginner

Expand Post »
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;
}
}
}
Last edited by cscgal; May 6th, 2006 at 4:05 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yibman is offline Offline
1 posts
since May 2006
May 6th, 2006
0

Re: C# beginner

You've got an odd using statement in there:

C# Syntax (Toggle Plain Text)
  1. using Wilson.ORMapper;

Do you have a particular question about the code, or a method within the class exactly?
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: How to use good oo-structure?
Next Thread in C# Forum Timeline: How To Make 3d Text With OpenGl Using C#.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC