Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
QuestionHow to dynamically escape a character? Pin
Joseline Riker7-Jun-21 13:25
Joseline Riker7-Jun-21 13:25 
AnswerRe: How to dynamically escape a character? Pin
Dave Kreskowiak7-Jun-21 15:06
mveDave Kreskowiak7-Jun-21 15:06 
AnswerRe: How to dynamically escape a character? Pin
OriginalGriff7-Jun-21 19:50
mveOriginalGriff7-Jun-21 19:50 
AnswerRe: How to dynamically escape a character? Pin
Richard MacCutchan7-Jun-21 21:14
mveRichard MacCutchan7-Jun-21 21:14 
AnswerRe: How to dynamically escape a character? Pin
Eddy Vluggen9-Jun-21 9:49
professionalEddy Vluggen9-Jun-21 9:49 
QuestionINotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
BillWoodruff7-Jun-21 11:35
professionalBillWoodruff7-Jun-21 11:35 
AnswerRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Eddy Vluggen8-Jun-21 4:21
professionalEddy Vluggen8-Jun-21 4:21 
GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
BillWoodruff8-Jun-21 10:48
professionalBillWoodruff8-Jun-21 10:48 
Thanks for you thoughts ! A major use of cancellation+notify code is to implement external validation on a per instance basis for your class. The multi-cast event driven technique enables external subscribers to define the validation code and/or the actions taken if validation passes or fails.

imho, locating responsibility for validation/data integrity outside the class can be seen as a "separation of concerns" strategy.

Of course, you could implement validation as a singleton within the class, so all external consumers are using the same validation.
Eddy Vluggen wrote:
Cancelling an update would be exceptional,
Every time you use some validation method, potentially, cancelling an update can occur.
Eddy Vluggen wrote:
Exceptions aren't that expensive.
When you allow external clients to inject executable code, potentially any of those clients could crash their code by throwing an error: meanwhile, back at the ranch, the calling class' code is waiting ...
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali


modified 8-Jun-21 20:37pm.

GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Eddy Vluggen9-Jun-21 6:19
professionalEddy Vluggen9-Jun-21 6:19 
AnswerRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Gary R. Wheeler13-Jun-21 8:26
Gary R. Wheeler13-Jun-21 8:26 
GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
BillWoodruff14-Jun-21 4:53
professionalBillWoodruff14-Jun-21 4:53 
GeneralRe: INotifyPropertyChanged/Changing: more useful in WPF compared to WinForms ? Pin
Gary R. Wheeler14-Jun-21 5:05
Gary R. Wheeler14-Jun-21 5:05 
QuestionUpdated an application that uses DDE. Specific requirements. Pin
ptmaker7-Jun-21 10:52
ptmaker7-Jun-21 10:52 
AnswerRe: Updated an application that uses DDE. Specific requirements. Pin
Mycroft Holmes7-Jun-21 12:10
professionalMycroft Holmes7-Jun-21 12:10 
GeneralRe: Updated an application that uses DDE. Specific requirements. Pin
ptmaker8-Jun-21 3:19
ptmaker8-Jun-21 3:19 
QuestionRe: Updated an application that uses DDE. Specific requirements. Pin
Eddy Vluggen9-Jun-21 6:24
professionalEddy Vluggen9-Jun-21 6:24 
QuestionControlled replay of recorded data Pin
Chuck8446-Jun-21 9:47
Chuck8446-Jun-21 9:47 
AnswerRe: Controlled replay of recorded data Pin
Gerry Schmitz6-Jun-21 16:43
mveGerry Schmitz6-Jun-21 16:43 
GeneralRe: Controlled replay of recorded data Pin
Chuck8446-Jun-21 19:13
Chuck8446-Jun-21 19:13 
GeneralRe: Controlled replay of recorded data Pin
Dave Kreskowiak7-Jun-21 4:21
mveDave Kreskowiak7-Jun-21 4:21 
GeneralRe: Controlled replay of recorded data Pin
Gerry Schmitz7-Jun-21 7:08
mveGerry Schmitz7-Jun-21 7:08 
GeneralRe: Controlled replay of recorded data Pin
Mycroft Holmes7-Jun-21 12:18
professionalMycroft Holmes7-Jun-21 12:18 
AnswerRe: Controlled replay of recorded data Pin
BillWoodruff7-Jun-21 11:53
professionalBillWoodruff7-Jun-21 11:53 
GeneralRe: Controlled replay of recorded data Pin
Chuck8448-Jun-21 3:36
Chuck8448-Jun-21 3:36 
Questionc# windows application Working with Microsoft Office Word Pin
Zeyad Jalil6-Jun-21 2:10
professionalZeyad Jalil6-Jun-21 2: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.