Click here to Skip to main content
15,889,858 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serialize .Net Framework Enums Pin
Kevin Marois23-Aug-16 7:40
professionalKevin Marois23-Aug-16 7:40 
AnswerMessage Closed Pin
23-Aug-16 9:42
professionalBillWoodruff23-Aug-16 9:42 
GeneralRe: Serialize .Net Framework Enums Pin
Kevin Marois23-Aug-16 9:56
professionalKevin Marois23-Aug-16 9:56 
QuestionEmail tracking in c# read/not read Pin
Member 1269682821-Aug-16 23:43
Member 1269682821-Aug-16 23:43 
AnswerRe: Email tracking in c# read/not read Pin
OriginalGriff21-Aug-16 23:56
mveOriginalGriff21-Aug-16 23:56 
JokeRe: Email tracking in c# read/not read Pin
Mycroft Holmes22-Aug-16 12:58
professionalMycroft Holmes22-Aug-16 12:58 
GeneralRe: Email tracking in c# read/not read Pin
OriginalGriff22-Aug-16 21:35
mveOriginalGriff22-Aug-16 21:35 
QuestionVisual Studio - how to change "var" to corresponding class Pin
Member 1094519421-Aug-16 0:14
Member 1094519421-Aug-16 0:14 
AnswerRe: Visual Studio - how to change "var" to corresponding class Pin
OriginalGriff21-Aug-16 0:44
mveOriginalGriff21-Aug-16 0:44 
AnswerRe: Visual Studio - how to change "var" to corresponding class Pin
BillWoodruff21-Aug-16 0:52
professionalBillWoodruff21-Aug-16 0:52 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
OriginalGriff21-Aug-16 1:46
mveOriginalGriff21-Aug-16 1:46 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
F-ES Sitecore21-Aug-16 23:05
professionalF-ES Sitecore21-Aug-16 23:05 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Maarten197722-Aug-16 1:57
Maarten197722-Aug-16 1:57 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
F-ES Sitecore22-Aug-16 2:04
professionalF-ES Sitecore22-Aug-16 2:04 
JokeRe: Visual Studio - how to change "var" to corresponding class Pin
Richard MacCutchan22-Aug-16 2:09
mveRichard MacCutchan22-Aug-16 2:09 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Maarten197722-Aug-16 2:35
Maarten197722-Aug-16 2:35 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Pete O'Hanlon22-Aug-16 2:45
mvePete O'Hanlon22-Aug-16 2:45 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Maarten197722-Aug-16 3:11
Maarten197722-Aug-16 3:11 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Pete O'Hanlon22-Aug-16 3:25
mvePete O'Hanlon22-Aug-16 3:25 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
F-ES Sitecore22-Aug-16 3:16
professionalF-ES Sitecore22-Aug-16 3:16 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Richard Deeming22-Aug-16 4:26
mveRichard Deeming22-Aug-16 4:26 
AnswerRe: Visual Studio - how to change "var" to corresponding class Pin
#realJSOP25-Aug-16 5:46
mve#realJSOP25-Aug-16 5:46 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Maarten197725-Aug-16 6:51
Maarten197725-Aug-16 6:51 
GeneralRe: Visual Studio - how to change "var" to corresponding class Pin
Richard Deeming22-Aug-16 2:06
mveRichard Deeming22-Aug-16 2:06 
And it's not even picked up some of the obvious things! Big Grin | :-D
C#
// Where followed by FirstOrDefault or SingleOrDefault can be replaced with an overload of the second function:
var customer = ctx.Customers.FirstOrDefault(c => c.HasOrders);
...
// This is an IQueryable<T> - you can't add it to a number in the line below:
var postage = ctx.Postage.Where(p => P.Country == customer.Country);
...
// Did you really mean to modify the value variable as well as the valuePlusPostage here?
var valuePlusPostage = value += postage;




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


Questionbrowse ith records on the GridView if errors rerun record or run next record ? Pin
Member 245846719-Aug-16 17:59
Member 245846719-Aug-16 17:59 

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.