|
You need to explain it over there what you have done indeed.
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
Give me 48 hours, to train my telepathic capabilities, and I´ll answer you.
|
|
|
|
|
And this is connected to C# how?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Nagy Vilmos wrote: how
Computer Science has a shorthand form as CS.
C# has the file extension as .CS
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Vas. [I can call you Vas can't I?] Don't encourage them. It's like shining a light at a moth.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I just meant as a joke.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
i2
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Oh my good God. Well, not really a C# question is it? In fact, it's a question asking what the bleeding obvious means. None-the-less, I'll try to help. About the project - why did you do this, for what purpose etc. Overview of the project - more about the project itself, architecture etc.
Regards,
Rob Philpott.
|
|
|
|
|
this piece of code might help you.
class brain
{
void engage(bool beforespeaking)
{
if (beforespeaking)
{
throw new stepawayfromthekeyboardexception();
}
}
}
void Main()
{
brain mybrain = new brain();
mybrain.engage(true);
mybrain.dispose();
}
|
|
|
|
|
good coding. the common error I usually see when people use the brain class is they call the Dispose method before using any of the brains other functions, which of course causes many problems (for everyone)
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
oops forgot to check if
brain != null
|
|
|
|
|
GriffinPeter wrote: brain != null
Shouldn't that be
if (!brain.IsNullOrEmpty())
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
write this...
"About the project"
The project is going to be the most complex application that I can find full source code on the internet.
"Overview of the project"
The project will involve me doing $&!£ ALL and most likely still getting a pass which will enable me to carry on with a career I am extremely unqualified to pursue.
But, seriously...
Where are you currently studying your computer science degree? I can get most grading schemes for most education authorities which you could use to help you know exactly what to write to get a good grade.
Life goes very fast. Tomorrow, today is already yesterday.
modified on Wednesday, June 17, 2009 8:17 AM
|
|
|
|
|
if(Student != "Reseach own your own")
{
Response.write(<script>alert('Final year Results:Fails,You are Retarded lol');</script>);
}
else
{
Response.write(<script>alert('Good Stundent Well Done, You worked hard');</script>);
}
i think am about to because of this type of posts
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
vinithakizhussery wrote: "Overview of the project"
The first stage of my project is to ask the customer if they want fries with that.
The next stage involves standing around with a vacant expression. (For extra credit, I let a little bit of drool dangle from the side of my mouth).
The final stage is to get the order wrong.
vinithakizhussery wrote: "About the project"
This project is about what I will be doing when I fail my course because I have deprived my village of an idiot.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Pete O'Hanlon wrote: This project is about what I will be doing when I fail my course because I have deprived my village of an idiot 20 pages too short for a pass mark.
FTFY
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Hi. Is there any ways/ APIs to determine how many references of a certain object/ class a C# program creates/ uses during it's life cycle?
Suppose there's a class Person and in my program several references to Person objects are made. How to determine the number of Person references in my program?
Thanks.
[Kayes]
|
|
|
|
|
Not sure about APIs etc., but the obvious one is to maintain a static int as part of your class and increment it for each constructor. This doesn't "uncount" them when they are GCed though, so it is a total count, rather than a shapshot.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Yeah, instance counting is easy. BTW: you could decrement the counter in a finalizer.
However reference counting is basically impossible, a reference can be copied without the class or object being aware of that.
Person person1=new Person();
Person person2=person1;
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Yeah, that's my point.
[Kayes]
|
|
|
|
|
That's a way. But consider the following. One object is constructed, but two references.
Person p = new Person();
Person q = p;
How to track this?
[Kayes]
|
|
|
|
|
you can't, there is nothing to support that in .NET
The GC is based on (a slightly conservative) reachability or "life" analysis, not on reference counting.
why would you need a reference count?
if only for one or a few classes of your own, you could try and implement it yourself, including an override for the = operator. Not sure you can get it all tight though.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Helloo Experts!!
I want to calculate difference between two dates(Day) and display that differnce date like 12\02\09,
In short,
current date:12\02\09
Dispaly date;11\02\09
help me!!
|
|
|
|
|
See Timespan class[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
you can try this,
DateTime d1 = DateTime.Today;
DateTime d2 = DateTime.Today.AddDays(1);
TimeSpan ans = d2.Subtract(d1);
If I didn't get your problem plz explain it.
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|