|
Definitions
11/13/2009 4:11:30 AM
(Total replies: 1)
|
| Can any of you let me know of any sites that CLEARLY and definitively define much of the nomenclature of C#.
<br />
<br />
I'm mainly trying to get my head around:
<br />
<br />
Namespace
<br />
Instance
<br />
Class
<br />
Object
<br />
Method
<br />
Static Method
<br />
Void
<br />
<br />
Without clearly understanding these by definition and concept I'm going to struggle. Most sites I've looked at and even the "Step by Step" book I have are not very clear in their ... |
|
|
|
Re: Definitions
11/13/2009 9:41:10 AM
(Total replies: 0)
|
| Many thanks guys - I will check out all of those sites. |
|
|
|
New to C# and needing help.
11/12/2009 7:02:50 AM
(Total replies: 1)
|
| I've just started with C# and I'm trying to write a basic calculator app.
<br />
<br />
Within my code I have the following:
<br />
<br />
//2 strings - memoryOne and displayInput declared under class scope.
<br />
<br />
private void plus_Click(object sender, EventArgs e)
<br />
{
<br />
if (memoryOne == null)
<br />
{
<br />
memoryOne = displayInput;
<br />
displayInput = "";
<br />
... |
|
|
|
Re: New to C# and needing help.
11/12/2009 7:11:10 AM
(Total replies: 1)
|
| Are they incorrect statements then?
<br />
<br />
From what I've read these should alter the string to a usable integer which I can then add to another.
<br />
<br />
My only thought was that somehow this part of the code was running while memoryOne was a null value which wouldn't parse (though I would have thought this would give a zero) and gave an error but I thought this part of the code would only run if memoryOne had a value due to the If..Else.. statement.
<br />
<br />
Thanks ... |
|
|
|
Re: New to C# and needing help.
11/12/2009 8:00:28 AM
(Total replies: 1)
|
| Thanks for that Vulpes. I will play around with that code.
<br />
<br />
I'm sure you're right but if so then I need a new argument for my If statement as null is obviously not working as a valid parameter.
<br />
<br />
I will take a look online into strings and see if I can find something to give a true or false return when string is empty. |
|
|
|
Re: New to C# and needing help.
11/12/2009 8:51:08 AM
(Total replies: 1)
|
| Thanks for the help guys.
<br />
<br />
I did a search and used:
<br />
<br />
If (mystring.Length == 0)
<br />
<br />
Which worked for this program. Still new to a lot of this but trying to write some stuff instead of just reading!
<br />
<br />
Cheers. |
|