Programming in vb.net: Question about this line of code in AppSettingsReader on newest questions tagged vb.net – Stack Overflow

I was reading this example: http://blog.ondrejsv.com/post/AppSettingsReader-and-reading-typed-and-nullable-application-settings.aspx and I noticed in this line of code:

int failCount = (int) appSettingsReader.GetValue("FailAttemptCount", typeof(int));

I don’t understand why there is a (int) before appSettingsReader, what it does, etc.

See Answers


source: http://stackoverflow.com/questions/7448739/question-about-this-line-of-code-in-appsettingsreader
Programming in vb.net: programming-in-vb-net



One Response to “Question about this line of code in AppSettingsReader”

  1. Only a smiling visitor here to share the love (:, btw outstanding style . “People forget how fast you did a job – but they remember how well you did it.” by Howard Newton.

online applications demo