Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
AnswerRe: when inheritance is ignored ? the limited scope of using 'new with methods Pin
Sascha Lefèvre5-Feb-16 0:41
professionalSascha Lefèvre5-Feb-16 0:41 
AnswerRe: when inheritance is ignored ? the limited scope of using 'new with methods Pin
John Torjo6-Feb-16 2:13
professionalJohn Torjo6-Feb-16 2:13 
SuggestionRe: when inheritance is ignored ? the limited scope of using 'new with methods Pin
Sascha Lefèvre6-Feb-16 14:29
professionalSascha Lefèvre6-Feb-16 14:29 
GeneralRe: when inheritance is ignored ? the limited scope of using 'new with methods Pin
John Torjo6-Feb-16 14:42
professionalJohn Torjo6-Feb-16 14:42 
QuestionWrite log from multiple instances of an application. Pin
NJdotnetdev3-Feb-16 2:59
NJdotnetdev3-Feb-16 2:59 
AnswerRe: Write log from multiple instances of an application. Pin
Richard Deeming3-Feb-16 4:02
mveRichard Deeming3-Feb-16 4:02 
GeneralRe: Write log from multiple instances of an application. Pin
NJdotnetdev3-Feb-16 4:25
NJdotnetdev3-Feb-16 4:25 
GeneralRe: Write log from multiple instances of an application. Pin
Richard MacCutchan3-Feb-16 4:46
mveRichard MacCutchan3-Feb-16 4:46 
GeneralRe: Write log from multiple instances of an application. Pin
NJdotnetdev3-Feb-16 7:45
NJdotnetdev3-Feb-16 7:45 
GeneralRe: Write log from multiple instances of an application. Pin
Richard Deeming3-Feb-16 9:16
mveRichard Deeming3-Feb-16 9:16 
AnswerRe: Write log from multiple instances of an application. Pin
Daniel Pfeffer3-Feb-16 5:50
professionalDaniel Pfeffer3-Feb-16 5:50 
AnswerRe: Write log from multiple instances of an application. Pin
Gerry Schmitz3-Feb-16 8:15
mveGerry Schmitz3-Feb-16 8:15 
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 
NB: You have some (copy&paste?) mistakes there:
C#
if ((MyObject is INotifyCollectionChanged)&& (MyObject is INotifyPropertyChanged))
        Console.WriteLine("This object implements both INotifyPropertyChanged and INotifyCollectionChanged");

if (!(MyObject is INotifyCollectionChanged) && (MyObject is INotifyPropertyChanged))
    Console.WriteLine("This object implements only INotifyPropertyChanged");
C#
public static IObservable<EventPattern<PropertyChangedEventArgs>> Observes<TSource>(this TSource MyObject) where TSource : INotifyPropertyChanged
{
    return null;
}

public static IObservable<EventPattern<NotifyCollectionChangedEventArgs>> Observes<TSource>(this TSource MyObject) where TSource : INotifyCollectionChanged
{
    return null;
}

The only way to keep the method names the same would be to have different parameter lists. But that doesn't make sense here. Just name them ObservePropertyChanged and ObserveCollectionChanged and move on 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 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 
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 

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.