Subscribe to The Madman Scribblings        RSS Feed
- - - - -

Template Functions via String Interpolation.

Icon Leave Comment
Template Functions via String Interpolation.

I've be toying with the idea of template function in vb.net and c#. (See; Blog and Topic)

Last night I found a way to "sort of" implement in C#6 and VB.net. :shuriken:

I can use SyntaxFactory.ParseExpression and String Interpolation.

...
- - - - -

My GitHub Repo for Roslyn Diagnostics and Code-Fixes

Icon Leave Comment
I've create a repository for my Roslyn-based Code Diagnostic and Code-Fixes. (Repo)
- - - - -

Updated Misassignment In Constructor to VS2015

Icon Leave Comment
The VS2015 has changed the api use to construct code diagnostics and code-fixes.
So I've started to update my diagnostics.

Misassignment In Constructors (C# & VB)


String Format Diagnostics (not yet updated)
- - - - -

Roslyn Diagnostic & Code Fix for Mis-Assignment in Constructor

Icon 1 Comments
Roslyn Diagnostic & Code Fix for Mis-Assignment in Constructor

Used: VS2014ctp4

Background

This Rosyln based diagnostic and code-fix for both VB.net and C# stems from a issue / feature request on the Roslyn project site. (Better Code Fix support for bad constructor assignments)







Problem Analysis

target = ...
- - - - -

String Format Diagnostic (v1.12.0.0)

Icon Leave Comment
String Format Diagnostic (v1.12.0.0)

With this release I've managed to back-port a verson to VS2013 (Roslyn CTP) as well as a version for VS2014.


Download available on the projects CodePlex page: String.Format Diagnostic (v1.12.0.0)
- - - - -

String Format Diagnostic (v1.9.0.0)

Icon Leave Comment
String Format Diagnostic (v1.9.0.0)

I've been spending some time developing a Roslyn Code Diagnostic to analyse and validate formatting strings in both VB and C#.
Proud to say that succeeding in creating a proof of concept a few months back (link to blog post)
Over the intervening spare time I have been slowly improving it.
- - - - -

Template Functions?

Icon Leave Comment
Template Functions?

Currently
Generating code via Roslyn (const)
...
- - - - -

Overridable Default Values For Null?

Icon 2 Comments
Overridable Default Values For Null? (Title is a link for more details)

Suppose we had the ability to express nonnull reference types in .net T!.
So there should be a way to express a default value, when null...

  • (14 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »