blog.slaks.net
Dissecting the new .Net Reference Source Browser – SLaks.Blog
http://blog.slaks.net/2014-02-24/dissecting-the-new-net-reference-source-browser
Making the world a better place, one line of code at a time. Dissecting the new .Net Reference Source Browser. Posted on Monday, February 24, 2014, at 6:30:00 PM UTC. The new .Net Reference Source Browser. See my previous post. Is an excellent example of one of the less-obvious uses of the new Roslyn. Toolchain. Kirill Osenkov. It runs each source file through the same Roslyn syntax highlighter used by VS itself, converting the result classification spans to HTML to generate the basic source code. So tha...
blog.slaks.net
Concurrency, part 2: Patterns for Asynchronous Methods – SLaks.Blog
http://blog.slaks.net/2015-01-04/async-method-patterns
Making the world a better place, one line of code at a time. Concurrency, part 2: Patterns for Asynchronous Methods. Posted on Sunday, January 04, 2015. Thus, an asynchronous method must use another approach to return its result. Asynchrony is viral; any method that calls an asynchronous method must itself become asynchronous. This effect will propagate up your entire call hierarchy, until the entry-point, which must either wait for the async operation (eg,. In this approach, no function will ever. This ...
blog.slaks.net
Getting Started with the Visual Studio Theming Architecture – SLaks.Blog
http://blog.slaks.net/2014-09-04/getting-started-with-visual-studio-themes
Making the world a better place, one line of code at a time. Getting Started with the Visual Studio Theming Architecture. Posted on Thursday, September 04, 2014. The theming system is built on WPF ResourceDictionaries, which contain reusable global resources such as colors, brushes, and control styles, keyed by strings or objects. Visual Studio 2010 had a table of 463 theme colors in the. Microsoft.VisualStudio.Shell.VsColors. Microsoft.VisualStudio.Shell.ThemeResourceKey. Beware that this is unversioned...
blog.slaks.net
Programming without errors – ErrorFree – SLaks.Blog
http://blog.slaks.net/2014-04-01/programming-without-errors-errorfree
Making the world a better place, one line of code at a time. Programming without errors ErrorFree. Posted on Tuesday, April 01, 2014. Errors are one of the most common and annoying problems in programming. Whether it’s the parser, the compiler, the type system, the runtime, or even system memory, everything you work with seems to have some way of complaining to you and refusing to run your code. Programmers spend more time fixing errors than any other task when developing applications. On to the stack (r...
marcinjuraszek.com
Solution-wide Rename from Code Fix Provider – Fix async method naming | a little bit of programming
http://marcinjuraszek.com/2014/05/solution-wide-rename-from-code-fix-provider-fix-async-method-naming.html
A little bit of programming. Solution-wide Rename from Code Fix Provider – Fix async method naming. May 8, 2014. Last time when I posted about Diagnostic with Code Fix. Using Microsoft .NET Compiler Platform, aka “Roslyn” the fix was completely local. This time, inspired by a tweet by Luke Sigler. I decided to go for solution-wide rename. Idea is very simple: Diagnostic checks every declared method and makes sure, that those marked with. Modifier have a name that ends with. Which is a base class for all ...
blog.slaks.net
Extending Visual Studio, part 4: Writing cross-version extensions – SLaks.Blog
http://blog.slaks.net/2014-02-25/extending-visual-studio-part-4-writing-cross-version-extensions
Making the world a better place, one line of code at a time. Extending Visual Studio, part 4: Writing cross-version extensions. Posted on Tuesday, February 25, 2014. I talked about the different approaches that Visual Studio takes toward assembly versioning. Note that the format for VSIX manifests changed in VS2012. If you want to create an extension using VS2012 or later, and have it work on VS2010, you will need to manually rewrite the. When using versioned assemblies, you need to make sure that you do...
blog.slaks.net
Concurrency, part 4: Comparing promises frameworks in different languages – SLaks.Blog
http://blog.slaks.net/2015-01-08/comparing-different-languages-promises-frameworks
Making the world a better place, one line of code at a time. Concurrency, part 4: Comparing promises frameworks in different languages. Posted on Thursday, January 08, 2015. I explained what promises are and how they work. Now, I’ll explore standard and third-party promise libraries in popular languages, explaining how they implement each facet of the promise paradigm. Net languages (C#, VB, etc). The Net base class library includes promise classes called. And exposes a value as well. You can also create...
blog.slaks.net
Exploring the new .Net Reference Source Code – SLaks.Blog
http://blog.slaks.net/2014-02-24/inside-the-new-net-reference-source
Making the world a better place, one line of code at a time. Exploring the new .Net Reference Source Code. Posted on Monday, February 24, 2014, at 6:23:00 PM UTC. Seven years ago, Microsoft released the .Net Reference Source Code, containing source for much of the .Net BCL for use with debugging. You could configure Visual Studio to use Microsoft’s public symbols servers, then step into the actual source code of .Net methods and see what’s going on under the hood. Lock (s [.]). Private void [.](). Contai...
blog.slaks.net
Count() Considered Occasionally Harmful – SLaks.Blog
http://blog.slaks.net/2015-01-12/linq-count-considered-occasionally-harmful
Making the world a better place, one line of code at a time. Count() Considered Occasionally Harmful. Posted on Monday, January 12, 2015. How many times have you seen code like this? Method](http:/ msdn.microsoft.com/en-us/library/vstudio/bb338038() has an important performance subtlety which can make this code unnecessarily slow. The root of the problem is that the. Interface, which all LINQ methods operate on, doesn’t actually have a count (if it did, there would be no need for the. This sequence will ...
blog.slaks.net
Introducing Typename Comments – A New Kind of Comment – SLaks.Blog
http://blog.slaks.net/2015-04-01/typename-comments-a-new-kind-of-comment
Making the world a better place, one line of code at a time. Introducing Typename Comments A New Kind of Comment. Posted on Wednesday, April 01, 2015. C# has two well-known styles of comments: C-style comments (. And C -style comments (. This blog post introduces a third kind of comment: typename comments. With a bit of supporting code, you can write comments as part of type names in casts, variable declarations, generic parameters, and anywhere else a typename can occur. You may have noticed the partial.
SOCIAL ENGAGEMENT