Category: .NET
-
IEnumerable
Please read the code and answer question below: How many times the breakpoint at will be hit ? Why? And if your answer is not 3,please look at https://youtu.be/1fy_T9TCPpc
-
Asynchronous code and exceptions
There are 2 kinds of coding when handling asynchronous code. The first one is calling Result: < [code lang="csharp"] t.TwoTask().Result [/code] The second is async /await As such,we will have 2 intercepting code. For the first one we will catch AggregateException For the second one we will catch the FIRST task exception ( or,more generic,Exception…
-
Async / await transformation and pitfalls
/// <summary> /// please read first http://blog.stephencleary.com/2012/02/async-and-await.html /// </summary> Let’s say you want to transform this code to async / await public bool TwoTask() { var file= WriteToFile(); var console= ReadConsole(); return file & console; } The first version is public async Task<bool> TwoTask() { var file=await WriteToFile(); var console = await ReadConsole(); return file…
-
Video Tutorials 5 minutes
Videos: 5Min Logging 5min Send emails and SMTP4Dev 5Min Memory Profiler ( User Object and/or memory leaks) 5min SFHB 5min – .TT files in Visual Studio Playlist 5 Minutes .NET
-
MVC planning poker–part 7
The latest 2 cases are Use Case 5: Round reset Moderator enters a round name (?) . Participants choose a value. Host press "reset round " and a fresh new round is created The old one is not saved Use Case 6: Round save After a round is saved,the users can see the history round…
-
2015 – Todo
Learn vNext Make a tutorial in EN + RO about vNext That will be all 😉
-
Entity Framework 6 Record and play use : Unit Testing ( part 2 of 5)
Part 1 : What is EF record and play : http://msprogrammer.serviciipeweb.ro/2014/11/29/entity-framework-6-record-and-play-1-of-5/ Part 2: EF Record and play use: Testing : http://msprogrammer.serviciipeweb.ro/2014/12/08/entity-framework-6-record-and-play-use-unit-testing-part-2-of-5/ Part 3: EF Record and play use: Make demo: http://msprogrammer.serviciipeweb.ro/2014/12/14/entity-framework-6-record-and-play-use-making-demos-part-3-of-5/ Part 4: EF Record and play use: Record user Sql when a bug occurs: http://msprogrammer.serviciipeweb.ro/2014/12/26/ef-record-and-play-use-recording-user-sql-when-a-bug-occurred-part-4-of-5/ Part 5: EF record and play: conclusions: http://msprogrammer.serviciipeweb.ro/2015/01/05/ef-record-and-play-conclusions/…
-
Entity Framework 6 Record and play – 1 of 5
Part 1 : What is EF record and play : http://msprogrammer.serviciipeweb.ro/2014/11/29/entity-framework-6-record-and-play-1-of-5/ Part 2: EF Record and play use: Testing : http://msprogrammer.serviciipeweb.ro/2014/12/08/entity-framework-6-record-and-play-use-unit-testing-part-2-of-5/ Part 3: EF Record and play use: Make demo: http://msprogrammer.serviciipeweb.ro/2014/12/14/entity-framework-6-record-and-play-use-making-demos-part-3-of-5/ Part 4: EF Record and play use: Record user Sql when a bug occurs: http://msprogrammer.serviciipeweb.ro/2014/12/26/ef-record-and-play-use-recording-user-sql-when-a-bug-occurred-part-4-of-5/ Part 5: EF record and play: conclusions: http://msprogrammer.serviciipeweb.ro/2015/01/05/ef-record-and-play-conclusions/…
-
Traceability – conclusion – part 7 of 7
Those were previous posts: Traceability in .NET – 1 of 7 Traceability in .NET–1.0.*–part 2 of 7 Tracebility in .NET -source control – part 3 of 7 Traceability in .NET–.tt files–add build date– part 4 of 7 Traceability in .NET–.tt files–add changeset – part 5 of 7 .TT – add more informations(.NET version,build ) –…
-
.TT – add more informations(.NET version,build ) – part 6 of 7
As you can see from the previous chapter,we have added to the AssemblyDescription more informations – like .NET version,build configuration,and more You can see those with an explorer add-on http://www.codeproject.com/Articles/118909/Windows-7-File-properties-Version-Tab-Shell-Extens Video : http://youtu.be/A_qSdVV93qk Demo project here : https://traceabilitydemo.codeplex.com/releases/view/132231 Source code here : https://traceabilitydemo.codeplex.com/SourceControl/changeset/view/110446