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

C#

 
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 
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 Pin
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 

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.