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

C#

 
AnswerRe: Write log from multiple instances of an application. Pin
Eddy Vluggen3-Feb-16 9:15
professionalEddy Vluggen3-Feb-16 9:15 
AnswerRe: Write log from multiple instances of an application. Pin
John Torjo3-Feb-16 13:47
professionalJohn Torjo3-Feb-16 13:47 
QuestionI want write process synchronization for .Net applictaion Pin
Member 110856472-Feb-16 19:49
Member 110856472-Feb-16 19:49 
AnswerRe: I want write process synchronization for .Net applictaion Pin
Dave Kreskowiak3-Feb-16 2:43
mveDave Kreskowiak3-Feb-16 2:43 
QuestionWriting complex overload methods for LINQ queries Pin
Kenneth Haugland2-Feb-16 4:40
mvaKenneth Haugland2-Feb-16 4:40 
AnswerRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 5:08
professionalSascha Lefèvre2-Feb-16 5:08 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland2-Feb-16 5:51
mvaKenneth Haugland2-Feb-16 5:51 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 6:15
professionalSascha Lefèvre2-Feb-16 6:15 
For a generic return type the type has to be part of the generic type arguments of the method:
C#
public static IObservable<T> Observes<TSource, T>(this TSource MyObject) where TSource : object, T: object
So this would just move the neccessity to write a different method name to having to write a different type name.

However, if you merged the methods for creating the observable and subscribing to it into one, you wouldn't have to return the generic IObservable but just the non-generic IDisposable subscription object instead.

But: Lifting the type constraint for TSource from IPropertyChanged / INotifyCollectionChanged to Object for the sake of having one method is rather "dirty" Wink | ;-)
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland2-Feb-16 6:30
mvaKenneth Haugland2-Feb-16 6:30 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 7:19
professionalSascha Lefèvre2-Feb-16 7:19 
AnswerRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland12-Feb-16 6:50
mvaKenneth Haugland12-Feb-16 6:50 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre12-Feb-16 9:34
professionalSascha Lefèvre12-Feb-16 9:34 
QuestionSaveFileDialog Pin
Mrkhoza1-Feb-16 23:28
professionalMrkhoza1-Feb-16 23:28 
AnswerRe: SaveFileDialog PinPopular
OriginalGriff1-Feb-16 23:40
mveOriginalGriff1-Feb-16 23:40 
AnswerRe: SaveFileDialog Pin
BillWoodruff2-Feb-16 0:02
professionalBillWoodruff2-Feb-16 0:02 
AnswerRe: SaveFileDialog PinPopular
Dave Kreskowiak2-Feb-16 1:27
mveDave Kreskowiak2-Feb-16 1:27 
GeneralRe: SaveFileDialog Pin
BillWoodruff2-Feb-16 2:13
professionalBillWoodruff2-Feb-16 2:13 
GeneralRe: SaveFileDialog Pin
Dave Kreskowiak2-Feb-16 3:51
mveDave Kreskowiak2-Feb-16 3:51 
GeneralRe: SaveFileDialog Pin
John Torjo3-Feb-16 13:39
professionalJohn Torjo3-Feb-16 13:39 
AnswerRe: SaveFileDialog Pin
Kevin Marois3-Feb-16 11:35
professionalKevin Marois3-Feb-16 11:35 
QuestionTextbox help(edited) Pin
Member 122873371-Feb-16 20:25
Member 122873371-Feb-16 20:25 
AnswerRe: Textbox help(edited) Pin
BillWoodruff1-Feb-16 20:55
professionalBillWoodruff1-Feb-16 20:55 
GeneralRe: Textbox help(edited) Pin
Member 122873372-Feb-16 8:58
Member 122873372-Feb-16 8:58 
AnswerRe: Textbox help(edited) Pin
OriginalGriff1-Feb-16 20:57
mveOriginalGriff1-Feb-16 20:57 
GeneralRe: Textbox help(edited) Pin
BillWoodruff1-Feb-16 21:06
professionalBillWoodruff1-Feb-16 21:06 

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.