Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# OOP: sub-property? Pin
Shameel11-Aug-11 22:26
professionalShameel11-Aug-11 22:26 
AnswerRe: C# OOP: sub-property? PinPopular
Pete O'Hanlon11-Aug-11 5:23
mvePete O'Hanlon11-Aug-11 5:23 
AnswerRe: C# OOP: sub-property? Pin
PIEBALDconsult15-Aug-11 3:05
mvePIEBALDconsult15-Aug-11 3:05 
QuestionOpen web page from C# WinForms Pin
dipuks11-Aug-11 4:09
dipuks11-Aug-11 4:09 
AnswerRe: Open web page from C# WinForms Pin
Eddy Vluggen11-Aug-11 6:18
professionalEddy Vluggen11-Aug-11 6:18 
QuestionIssues in using Observable<T> to fire Property notification events (WinForms) [modified] Pin
BillWoodruff11-Aug-11 3:45
professionalBillWoodruff11-Aug-11 3:45 
AnswerRe: Issues in using Observable<T> to fire Property notification events (WinForms) Pin
BobJanova11-Aug-11 22:27
BobJanova11-Aug-11 22:27 
GeneralRe: Issues in using Observable&lt;T&gt; to fire Property notification events (WinForms) Pin
BillWoodruff11-Aug-11 23:23
professionalBillWoodruff11-Aug-11 23:23 
Hi Bob, thanks for your response !
BobJanova wrote:
if you're data binding, why not use a BindingList<T>?
In this case I am not binding anything; there's no dataset in the woodpile Smile | :) I will go and take a look at Binding<T> now that you've pointed that out to me. fyi: I am familiar with implementing property notifications, like for the Text in a TextBox changing without any use of a dataset, or datasource.
BobJanova wrote:
not quite sure if you're asking a question here or just providing information about your experience
I'm not quite sure either; I believe I am asking the question of whether the requirement, in the case of using an OC<T>, to cast an instance of it to INotifyPropertyChanged, in order to use its internally implemented property change notifications ... which I consider a very odd thing to have to do ... is worth the 'ugliness' involved.

And, I am hoping that you, or someone else here, who I am sure are at very advanced levels in .NET development, will give me some insights into what seems like a 'mystery' (to my 'naive' eyes). Perhaps, insights, based on your knowledge of how .NET has evolved. I know that OC<T> has changed library locations, and possibly some internal behavior, from .NET 3.0=>3.5=>4.0.

My intent in exploring this area is somewhat academic ... but certainly not homework (I'm nearing 68 years old) ... I am just deeply interested in understanding .NET's implementation, in WinForms, C#.

On a practical level, the ability to get a notification when a value is changed of a member of an arbitrarily typed collection, independent of binding to a datasource, seems valuable to me; I focused on OC<T> because that gives you 'out-of-the-box' notifcations when an item is added, or deleted, from the Collection<T>. It seemed natural, once I found out that OC<T> implemented property notification, to want to use that.

I did 'stumble' into finding out how to use the native property notification facility in OC<T>, but finding even a 'clue' about how to use it took pretty thorough research here, on StackOverFlow, and on MSDN. And, the way I found to actually use it, in a fairly standard scenario, I came up with on my own; didn't find a single example of that in my research (which of course doesn't mean it isn't there, somewhere on the internet).

Let me see if I can 'wrap this up:' for example, if you, or Pete O., or Shameel, or others here, said to me: 'yeah the fact that OC<T>'s INotifyPropertyChanged implementation is kind of 'sealed,' and you have to cast an instance of your collection to it to be able to use it, really is weird, probably better ... because of .?. not to use it, I'd feel enlightened, temporarily.

On the other hand, if I heard here that it might be valuable to use a technique for making an OC<T>'s property notifications available, I'd certainly at least write up a tip/trick for CP.

On the broader level, I do look forward to one-day, perhaps, having something like Property Extensions in .NET, and I understand that has been considered seriously, but is not on the .NET time-line now. I'd definitely like to be able to do some of the things that it seems WPF offers you in terms of property bindings, etc.

best, Bill
"In the River of Delights, Panic has not failed me." Jorge Luis Borges

GeneralRe: Issues in using Observable<T> to fire Property notification events (WinForms) Pin
BobJanova11-Aug-11 23:57
BobJanova11-Aug-11 23:57 
GeneralRe: Issues in using Observable to fire Property notification events (WinForms) Pin
BillWoodruff12-Aug-11 12:27
professionalBillWoodruff12-Aug-11 12:27 
GeneralRe: Issues in using Observable<T> to fire Property notification events (WinForms) Pin
Pete O'Hanlon12-Aug-11 0:15
mvePete O'Hanlon12-Aug-11 0:15 
GeneralRe: Issues in using Observable to fire Property notification events (WinForms) Pin
BobJanova12-Aug-11 2:48
BobJanova12-Aug-11 2:48 
GeneralRe: Issues in using Observable to fire Property notification events (WinForms) Pin
BillWoodruff12-Aug-11 12:29
professionalBillWoodruff12-Aug-11 12:29 
Questionproblem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 3:37
pprasanthk11-Aug-11 3:37 
AnswerRe: problem with process.waitforexit(timeout) Pin
Not Active11-Aug-11 4:27
mentorNot Active11-Aug-11 4:27 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 5:41
pprasanthk11-Aug-11 5:41 
GeneralRe: problem with process.waitforexit(timeout) Pin
Not Active11-Aug-11 5:58
mentorNot Active11-Aug-11 5:58 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:02
pprasanthk11-Aug-11 7:02 
GeneralRe: problem with process.waitforexit(timeout) Pin
Not Active11-Aug-11 7:32
mentorNot Active11-Aug-11 7:32 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:05
pprasanthk11-Aug-11 7:05 
GeneralRe: problem with process.waitforexit(timeout) PinPopular
Pete O'Hanlon11-Aug-11 7:20
mvePete O'Hanlon11-Aug-11 7:20 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:34
pprasanthk11-Aug-11 7:34 
GeneralRe: problem with process.waitforexit(timeout) Pin
thatraja11-Aug-11 7:43
professionalthatraja11-Aug-11 7:43 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:45
pprasanthk11-Aug-11 7:45 
AnswerRe: problem with process.waitforexit(timeout) Pin
jschell11-Aug-11 13:09
jschell11-Aug-11 13:09 

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.