Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
SuggestionRe: lambda expression to retrieve sequence based on an array value where the array is stored in the sequence Pin
Richard Deeming19-Dec-17 2:17
mveRichard Deeming19-Dec-17 2:17 
GeneralRe: lambda expression to retrieve sequence based on an array value where the array is stored in the sequence Pin
OriginalGriff19-Dec-17 2:26
mveOriginalGriff19-Dec-17 2:26 
QuestionHaving trouble working with balls on Pong game in Windows forms in C# Pin
Wagner18-Dec-17 4:29
Wagner18-Dec-17 4:29 
AnswerRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Kenneth Haugland18-Dec-17 4:34
mvaKenneth Haugland18-Dec-17 4:34 
GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Wagner18-Dec-17 4:53
Wagner18-Dec-17 4:53 
AnswerRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Ron Nicholson18-Dec-17 5:25
professionalRon Nicholson18-Dec-17 5:25 
GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Wagner18-Dec-17 6:46
Wagner18-Dec-17 6:46 
AnswerRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Gerry Schmitz18-Dec-17 6:35
mveGerry Schmitz18-Dec-17 6:35 
What you'e seeing in some cases is what's called "defensive programming"; e.g.

One assumes that if Y == 0, the ball is at "ground level"; and if Y = Height of container, it is "on the ceiling".

However, with "floating point calculations" (or some "logic"), you may never reach zero or height exactly; so one plays it safe by coding "(equal or) greater / less than" versus an "exact" value that might be missed.

In this case, the code goes or projects going "past" some "stopping point".
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal

GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Wagner18-Dec-17 7:28
Wagner18-Dec-17 7:28 
GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Gerry Schmitz18-Dec-17 7:45
mveGerry Schmitz18-Dec-17 7:45 
QuestionConfigure container in Bootstrapper with Unity Pin
Kenneth Haugland17-Dec-17 3:17
mvaKenneth Haugland17-Dec-17 3:17 
AnswerRe: Configure container in Bootstrapper with Unity Pin
Chris Quinn17-Dec-17 21:36
Chris Quinn17-Dec-17 21:36 
GeneralRe: Configure container in Bootstrapper with Unity Pin
Kenneth Haugland18-Dec-17 1:57
mvaKenneth Haugland18-Dec-17 1:57 
AnswerRe: Configure container in Bootstrapper with Unity Pin
Kenneth Haugland18-Dec-17 8:24
mvaKenneth Haugland18-Dec-17 8:24 
QuestionRegarding article post of mvc pagelist. Pin
Member 1320094417-Dec-17 3:15
Member 1320094417-Dec-17 3:15 
AnswerRe: Regarding article post of mvc pagelist. Pin
Afzaal Ahmad Zeeshan17-Dec-17 4:32
professionalAfzaal Ahmad Zeeshan17-Dec-17 4:32 
QuestionExceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 1:30
professionalUser9874317-Dec-17 1:30 
AnswerRe: Exceptions Thrown Back to Caller with No Details Pin
Richard Andrew x6417-Dec-17 1:48
professionalRichard Andrew x6417-Dec-17 1:48 
GeneralRe: Exceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 11:25
professionalUser9874317-Dec-17 11:25 
AnswerRe: Exceptions Thrown Back to Caller with No Details Pin
Richard Andrew x6417-Dec-17 11:56
professionalRichard Andrew x6417-Dec-17 11:56 
GeneralRe: Exceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 13:39
professionalUser9874317-Dec-17 13:39 
GeneralRe: Exceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 14:38
professionalUser9874317-Dec-17 14:38 
QuestionI have a collum that is called "MountCT" Time type but for some reason when processing , times do not add up . Pin
Member 1256531216-Dec-17 22:32
Member 1256531216-Dec-17 22:32 
AnswerRe: I have a collum that is called "MountCT" Time type but for some reason when processing , times do not add up . Pin
Richard Andrew x6417-Dec-17 4:54
professionalRichard Andrew x6417-Dec-17 4:54 
Questioncompile error: The name 'HttpUtility' does not exist in the current context Pin
Member 1356965016-Dec-17 9:46
Member 1356965016-Dec-17 9:46 

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.