Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
General[SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:38
Bastar Media18-Sep-15 21:38 
GeneralRe: [SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Wendelius18-Sep-15 21:42
mentorWendelius18-Sep-15 21:42 
GeneralRe: [SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:47
Bastar Media18-Sep-15 21:47 
QuestionNancyFx in OWIN and Windows Service host Pin
LIttle_Cat17-Sep-15 20:25
LIttle_Cat17-Sep-15 20:25 
AnswerRe: NancyFx in OWIN and Windows Service host Pin
Richard Andrew x6418-Sep-15 18:00
professionalRichard Andrew x6418-Sep-15 18:00 
QuestionREST Web API Query JSON Deserialization Pin
FMG Tech17-Sep-15 17:10
FMG Tech17-Sep-15 17:10 
AnswerRe: REST Web API Query JSON Deserialization Pin
Richard MacCutchan17-Sep-15 23:30
mveRichard MacCutchan17-Sep-15 23:30 
GeneralRe: REST Web API Query JSON Deserialization Pin
FMG Tech18-Sep-15 6:34
FMG Tech18-Sep-15 6:34 
GeneralRe: REST Web API Query JSON Deserialization Pin
Richard MacCutchan18-Sep-15 6:49
mveRichard MacCutchan18-Sep-15 6:49 
GeneralRe: REST Web API Query JSON Deserialization Pin
FMG Tech18-Sep-15 15:16
FMG Tech18-Sep-15 15:16 
QuestionEdit SVG text elements of XHTML page with C# Pin
Bartosz Jarmuż17-Sep-15 4:16
Bartosz Jarmuż17-Sep-15 4:16 
Questionc# RSA security Pin
Member 1198796116-Sep-15 20:11
Member 1198796116-Sep-15 20:11 
AnswerRe: c# RSA security Pin
Eddy Vluggen16-Sep-15 22:54
professionalEddy Vluggen16-Sep-15 22:54 
QuestionIn visual studio do you know what the name of this control ? Pin
Member 245846716-Sep-15 16:29
Member 245846716-Sep-15 16:29 
AnswerRe: In visual studio do you know what the name of this control ? Pin
Richard MacCutchan16-Sep-15 21:43
mveRichard MacCutchan16-Sep-15 21:43 
AnswerRe: In visual studio do you know what the name of this control ? Pin
Eddy Vluggen16-Sep-15 22:50
professionalEddy Vluggen16-Sep-15 22:50 
AnswerRe: In visual studio do you know what the name of this control ? Pin
BillWoodruff17-Sep-15 0:11
professionalBillWoodruff17-Sep-15 0:11 
GeneralRe: In visual studio do you know what the name of this control ? Pin
Member 245846717-Sep-15 23:26
Member 245846717-Sep-15 23:26 
AnswerRe: In visual studio do you know what the name of this control ? Pin
ngoj17-Sep-15 2:43
ngoj17-Sep-15 2:43 
GeneralRe: In visual studio do you know what the name of this control ? Pin
Pete O'Hanlon17-Sep-15 2:55
mvePete O'Hanlon17-Sep-15 2:55 
GeneralRe: In visual studio do you know what the name of this control ? Pin
ngoj17-Sep-15 3:14
ngoj17-Sep-15 3:14 
QuestionDeclarations using var Pin
JBHowl16-Sep-15 1:54
JBHowl16-Sep-15 1:54 
AnswerRe: Declarations using var Pin
Eddy Vluggen16-Sep-15 2:16
professionalEddy Vluggen16-Sep-15 2:16 
AnswerRe: Declarations using var Pin
Richard Deeming16-Sep-15 2:29
mveRichard Deeming16-Sep-15 2:29 
GeneralRe: Declarations using var Pin
Eddy Vluggen16-Sep-15 9:32
professionalEddy Vluggen16-Sep-15 9:32 
Richard Deeming wrote:
(In this example, if you change the type of dbCommand, the
var sample would just work, but the SqlDataReader
would generate a compiler error until you changed the type of
dbReader as well.)
That must be why we usually program against the base-class, putting the SqlDataReader into variable of type DbDataReader, or against its interface, IDataReader.

Declaring those as "var" means that the type may not what you expect it to be. If it offers no advantage to use var, then it might be wise to be precise.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

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.