C# beginner

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2006
Posts: 1
Reputation: yibman is an unknown quantity at this point 
Solved Threads: 0
yibman yibman is offline Offline
Newbie Poster

C# beginner

 
0
  #1
May 6th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: C# beginner

 
0
  #2
May 6th, 2006
You've got an odd using statement in there:

  1. using Wilson.ORMapper;

Do you have a particular question about the code, or a method within the class exactly?
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2434 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC