Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to remove Flag status from Outlook by c# programming or register edit Pin
Chris Quinn22-Jun-17 3:09
Chris Quinn22-Jun-17 3:09 
AnswerRe: how to remove Flag status from Outlook by c# programming or register edit Pin
Eddy Vluggen22-Jun-17 4:21
professionalEddy Vluggen22-Jun-17 4:21 
GeneralRe: how to remove Flag status from Outlook by c# programming or register edit Pin
Member 1323094822-Jun-17 20:21
Member 1323094822-Jun-17 20:21 
GeneralRe: how to remove Flag status from Outlook by c# programming or register edit Pin
Pete O'Hanlon22-Jun-17 21:23
mvePete O'Hanlon22-Jun-17 21:23 
Question[SOLVED] Unify Methods; Parameters one or two IEnums<T> Pin
atrus271119-Jun-17 22:02
atrus271119-Jun-17 22:02 
AnswerRe: Unify Methods; Parameters one or two IEnums<T> Pin
Richard Deeming20-Jun-17 0:56
mveRichard Deeming20-Jun-17 0:56 
GeneralRe: Unify Methods; Parameters one or two IEnums<T> Pin
atrus271120-Jun-17 2:19
atrus271120-Jun-17 2:19 
GeneralRe: Unify Methods; Parameters one or two IEnums<T> Pin
Richard Deeming20-Jun-17 2:25
mveRichard Deeming20-Jun-17 2:25 
Something like this?
C#
private void DoIt<TSource, TResult>(IEnumerable<TSource> source, Func<TSource, TResult> selector, IEqualityComparer<TResult> comparer = null)
{
    ...
    var result = source.Select(selector).Distinct(comparer);
    ...
}

DoIt(SomeList, c => c.IntegerField);
DoIt(SomeList, c => new { c.IntegerField1, c.IntegerField2 });
DoIt(SomeList, c => new { c.StringField, c.IntegerField });




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Unify Methods; Parameters one or two IEnums<T> Pin
atrus271120-Jun-17 2:39
atrus271120-Jun-17 2:39 
PraiseRe: Unify Methods; Parameters one or two IEnums<T> Pin
atrus271120-Jun-17 20:32
atrus271120-Jun-17 20:32 
Questionbehavior of Value Tuples in .NET 4.7 Pin
BillWoodruff19-Jun-17 6:24
professionalBillWoodruff19-Jun-17 6:24 
AnswerRe: behavior of Value Tuples in .NET 4.7 Pin
Nathan Minier19-Jun-17 7:05
professionalNathan Minier19-Jun-17 7:05 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
BillWoodruff20-Jun-17 6:36
professionalBillWoodruff20-Jun-17 6:36 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
Nathan Minier20-Jun-17 7:34
professionalNathan Minier20-Jun-17 7:34 
AnswerRe: behavior of Value Tuples in .NET 4.7 Pin
Eddy Vluggen19-Jun-17 21:55
professionalEddy Vluggen19-Jun-17 21:55 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
BillWoodruff20-Jun-17 6:34
professionalBillWoodruff20-Jun-17 6:34 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
Eddy Vluggen20-Jun-17 8:37
professionalEddy Vluggen20-Jun-17 8:37 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
BillWoodruff20-Jun-17 15:39
professionalBillWoodruff20-Jun-17 15:39 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
Eddy Vluggen21-Jun-17 3:45
professionalEddy Vluggen21-Jun-17 3:45 
AnswerRe: behavior of Value Tuples in .NET 4.7 Pin
Bernhard Hiller19-Jun-17 22:46
Bernhard Hiller19-Jun-17 22:46 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
BillWoodruff20-Jun-17 6:44
professionalBillWoodruff20-Jun-17 6:44 
AnswerRe: behavior of Value Tuples in .NET 4.7 Pin
Richard Deeming20-Jun-17 0:50
mveRichard Deeming20-Jun-17 0:50 
GeneralRe: behavior of Value Tuples in .NET 4.7 Pin
BillWoodruff20-Jun-17 6:50
professionalBillWoodruff20-Jun-17 6:50 
AnswerRe: behavior of Value Tuples in .NET 4.7 Pin
Gerry Schmitz21-Jun-17 3:15
mveGerry Schmitz21-Jun-17 3:15 
QuestionRemoving an element from the content of a string value which is HTML code Pin
Farhad Eft19-Jun-17 1:55
Farhad Eft19-Jun-17 1:55 

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.