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

C#

 
QuestionGame Pin
Member 136022178-Jan-18 10:55
Member 136022178-Jan-18 10:55 
AnswerRe: Game Pin
Pete O'Hanlon8-Jan-18 11:09
mvePete O'Hanlon8-Jan-18 11:09 
GeneralRe: Game Pin
Dave Kreskowiak8-Jan-18 11:26
mveDave Kreskowiak8-Jan-18 11:26 
AnswerRe: Game Pin
Swinkaran8-Jan-18 11:38
professionalSwinkaran8-Jan-18 11:38 
GeneralRe: Game Pin
PIEBALDconsult8-Jan-18 13:15
mvePIEBALDconsult8-Jan-18 13:15 
AnswerRe: Game Pin
Chris Quinn8-Jan-18 21:26
Chris Quinn8-Jan-18 21:26 
AnswerRe: Game Pin
V.9-Jan-18 21:55
professionalV.9-Jan-18 21:55 
QuestionQuestion About Async/Await Pin
Kevin Marois8-Jan-18 6:46
professionalKevin Marois8-Jan-18 6:46 
I've read that it's not a good idea to fire an sync method from a property, yet I see plenty of places where I would want to do this.

For example, at the top of my Contacts view I have a Search field bound to a ContactSearchValue string property. When the user enters a seaarch value I reload all the contacts that match.

To do this I call LoadContacts from the settter of the property. Because LoadContacts is async I get a compilation warning saying "Because this call is not awaited, execution of the current method continues before the call is completed" This is OK beause it in a property settings and there's no other code.

Anyone have any thoughts on this?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Question About Async/Await Pin
Alex Schunk8-Jan-18 7:00
Alex Schunk8-Jan-18 7:00 
GeneralRe: Question About Async/Await Pin
Kevin Marois8-Jan-18 8:13
professionalKevin Marois8-Jan-18 8:13 
GeneralRe: Question About Async/Await Pin
Alex Schunk8-Jan-18 8:21
Alex Schunk8-Jan-18 8:21 
GeneralRe: Question About Async/Await Pin
Kevin Marois8-Jan-18 9:45
professionalKevin Marois8-Jan-18 9:45 
GeneralRe: Question About Async/Await Pin
Alex Schunk8-Jan-18 9:55
Alex Schunk8-Jan-18 9:55 
AnswerRe: Question About Async/Await Pin
Dave Kreskowiak8-Jan-18 8:39
mveDave Kreskowiak8-Jan-18 8:39 
GeneralRe: Question About Async/Await Pin
Kevin Marois8-Jan-18 9:44
professionalKevin Marois8-Jan-18 9:44 
AnswerRe: Question About Async/Await Pin
Gerry Schmitz10-Jan-18 8:34
mveGerry Schmitz10-Jan-18 8:34 
QuestionToggle button in a datatemplate with command binding using MVVM design approach Pin
Hervend7-Jan-18 16:17
Hervend7-Jan-18 16:17 
AnswerRe: Toggle button in a datatemplate with command binding using MVVM design approach Pin
Kenneth Haugland7-Jan-18 17:32
mvaKenneth Haugland7-Jan-18 17:32 
GeneralRe: Toggle button in a datatemplate with command binding using MVVM design approach Pin
Hervend8-Jan-18 0:04
Hervend8-Jan-18 0:04 
GeneralRe: Toggle button in a datatemplate with command binding using MVVM design approach Pin
Kenneth Haugland8-Jan-18 1:08
mvaKenneth Haugland8-Jan-18 1:08 
Questionhow to get alert while working in c# windows application Pin
Member 30804705-Jan-18 23:07
Member 30804705-Jan-18 23:07 
AnswerRe: how to get alert while working in c# windows application Pin
OriginalGriff6-Jan-18 0:55
mveOriginalGriff6-Jan-18 0:55 
AnswerRe: how to get alert while working in c# windows application Pin
BillWoodruff6-Jan-18 2:53
professionalBillWoodruff6-Jan-18 2:53 
AnswerRe: how to get alert while working in c# windows application Pin
Gerry Schmitz6-Jan-18 7:28
mveGerry Schmitz6-Jan-18 7:28 
Questionextending a special case of a generic type Pin
Alexander Kindel5-Jan-18 22:10
Alexander Kindel5-Jan-18 22:10 

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.