Click here to Skip to main content
15,881,281 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: browse ith records on the GridView if errors rerun record or run next record ? Pin
OriginalGriff19-Aug-16 21:43
mveOriginalGriff19-Aug-16 21:43 
AnswerRe: browse ith records on the GridView if errors rerun record or run next record ? Pin
Richard MacCutchan19-Aug-16 22:00
mveRichard MacCutchan19-Aug-16 22:00 
GeneralRe: browse ith records on the GridView if errors rerun record or run next record ? Pin
Member 245846720-Aug-16 17:57
Member 245846720-Aug-16 17:57 
QuestionAT+CREG? command Pin
Mike Angelo Gunao Navales18-Aug-16 22:59
Mike Angelo Gunao Navales18-Aug-16 22:59 
AnswerRe: AT+CREG? command Pin
OriginalGriff18-Aug-16 23:32
mveOriginalGriff18-Aug-16 23:32 
GeneralRe: AT+CREG? command Pin
Mike Angelo Gunao Navales19-Aug-16 1:10
Mike Angelo Gunao Navales19-Aug-16 1:10 
Questionvisual studio 2013 community edition and uml modeling Pin
Tridip Bhattacharjee18-Aug-16 21:52
professionalTridip Bhattacharjee18-Aug-16 21:52 
AnswerRe: visual studio 2013 community edition and uml modeling Pin
Richard MacCutchan18-Aug-16 22:25
mveRichard MacCutchan18-Aug-16 22:25 
AnswerRe: visual studio 2013 community edition and uml modeling Pin
Nathan Minier19-Aug-16 1:00
professionalNathan Minier19-Aug-16 1:00 
AnswerRe: visual studio 2013 community edition and uml modeling Pin
Gerry Schmitz20-Aug-16 8:12
mveGerry Schmitz20-Aug-16 8:12 
QuestionHow to get the currently opened directory in Windows Explorer in .net Pin
srikrishnathanthri17-Aug-16 19:28
srikrishnathanthri17-Aug-16 19:28 
AnswerRe: How to get the currently opened directory in Windows Explorer in .net Pin
Richard MacCutchan17-Aug-16 21:35
mveRichard MacCutchan17-Aug-16 21:35 
Questionconcatenative approach to TTS Pin
Member 1266621417-Aug-16 4:28
Member 1266621417-Aug-16 4:28 
AnswerRe: concatenative approach to TTS Pin
OriginalGriff17-Aug-16 4:51
mveOriginalGriff17-Aug-16 4:51 
AnswerRe: concatenative approach to TTS Pin
Gerry Schmitz17-Aug-16 6:01
mveGerry Schmitz17-Aug-16 6:01 
AnswerRe: concatenative approach to TTS Pin
Bernhard Hiller17-Aug-16 21:51
Bernhard Hiller17-Aug-16 21:51 

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.