Click here to Skip to main content
15,900,325 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is an instance variable and how do you declare one? Pin
Mycroft Holmes2-Aug-09 12:12
professionalMycroft Holmes2-Aug-09 12:12 
GeneralRe: What is an instance variable and how do you declare one? Pin
Nathan Revka2-Aug-09 12:16
Nathan Revka2-Aug-09 12:16 
GeneralRe: What is an instance variable and how do you declare one? Pin
Mycroft Holmes2-Aug-09 12:23
professionalMycroft Holmes2-Aug-09 12:23 
GeneralRe: What is an instance variable and how do you declare one? Pin
Christian Graus2-Aug-09 13:54
protectorChristian Graus2-Aug-09 13:54 
AnswerRe: What is an instance variable and how do you declare one? Pin
Christian Graus2-Aug-09 13:52
protectorChristian Graus2-Aug-09 13:52 
QuestionWhat the heck does this mean? [modified] Pin
Nathan Revka2-Aug-09 10:56
Nathan Revka2-Aug-09 10:56 
AnswerRe: What the heck does this mean? Pin
Richard Andrew x642-Aug-09 11:07
professionalRichard Andrew x642-Aug-09 11:07 
AnswerRe: What the heck does this mean? Pin
Christian Graus2-Aug-09 11:38
protectorChristian Graus2-Aug-09 11:38 
Nathan Revka wrote:
He wants me to calculate stuff with savingsBalance but I do not think I am able to do that with an object that includes a string


This makes your teacher a bit dumb, IMO, but you can convert a string into a number using decimal.TryParse, or int.TryParse, depending on what type you want. You can also use the decimal.Parse or even Convert.ToInt32, etc, but the tryparse will not blow up if the string does not contain a number.

Of course, if amount is a number, then that's all you would use to calculate with. Storing the savingsBalance as a string, seems odd to me, the balance is the number, the rest is the account name. The string might be rendered by a helper method, but surely amount is also being stored somewhere ?

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

QuestionAdvice Pin
michael_jhons2-Aug-09 8:16
michael_jhons2-Aug-09 8:16 
AnswerRe: Advice Pin
Manas Bhardwaj2-Aug-09 9:04
professionalManas Bhardwaj2-Aug-09 9:04 
QuestionDeserialising derived classes using XmlAttributeOverrides Pin
Clive D. Pottinger2-Aug-09 6:39
Clive D. Pottinger2-Aug-09 6:39 
AnswerRe: Deserialising derived classes using XmlAttributeOverrides Pin
N a v a n e e t h2-Aug-09 7:55
N a v a n e e t h2-Aug-09 7:55 
GeneralRe: Deserialising derived classes using XmlAttributeOverrides Pin
Clive D. Pottinger3-Aug-09 6:08
Clive D. Pottinger3-Aug-09 6:08 
GeneralRe: Deserialising derived classes using XmlAttributeOverrides Pin
N a v a n e e t h3-Aug-09 16:27
N a v a n e e t h3-Aug-09 16:27 
AnswerRe: Deserialising derived classes using XmlAttributeOverrides Pin
Henry Minute2-Aug-09 9:09
Henry Minute2-Aug-09 9:09 
GeneralRe: Deserialising derived classes using XmlAttributeOverrides Pin
Clive D. Pottinger3-Aug-09 6:13
Clive D. Pottinger3-Aug-09 6:13 
QuestionAccessing the file of a T-SQL BACKUP call Pin
Uwe Keim2-Aug-09 6:00
sitebuilderUwe Keim2-Aug-09 6:00 
AnswerRe: Accessing the file of a T-SQL BACKUP call Pin
N a v a n e e t h2-Aug-09 7:40
N a v a n e e t h2-Aug-09 7:40 
GeneralRe: Accessing the file of a T-SQL BACKUP call Pin
Uwe Keim2-Aug-09 19:15
sitebuilderUwe Keim2-Aug-09 19:15 
AnswerRe: Accessing the file of a T-SQL BACKUP call Pin
Mycroft Holmes2-Aug-09 12:21
professionalMycroft Holmes2-Aug-09 12:21 
GeneralRe: Accessing the file of a T-SQL BACKUP call Pin
Uwe Keim2-Aug-09 19:15
sitebuilderUwe Keim2-Aug-09 19:15 
Questionnotify icon Pin
Vivek Vijayan2-Aug-09 2:18
Vivek Vijayan2-Aug-09 2:18 
AnswerRe: notify icon Pin
Manas Bhardwaj2-Aug-09 2:27
professionalManas Bhardwaj2-Aug-09 2:27 
GeneralRe: notify icon Pin
Abhijit Jana2-Aug-09 2:38
professionalAbhijit Jana2-Aug-09 2:38 
GeneralRe: notify icon Pin
Manas Bhardwaj2-Aug-09 2:39
professionalManas Bhardwaj2-Aug-09 2:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.