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

Validation Of Date.(No Math)

Icon 4 Comments
Validation Of Dates.(No Math)

I've developed a method of validating the digit characters in a date. Using only simple parsing techniques.
  • No maths is involved
  • No creation of a DateTime object.
  • No converting of the character into integers.

This technique assumes that character are a least digits.



Extension Methods
...
- - - - -

My Cup(Of T) from the Roslyn Team

Icon Leave Comment
It's been a while since I last posted something here. Stepped away from programming for awhile, and my sanity.

Any how.

I've been contributing to an Open Source project. Roslyn
Nothing too big at the moment. Just mainly looking for tweaks and fixes for the VB.net compiler.

Pull Requests

Committed & Merged:-
- - - - -

String Format Diagnostic Update

Icon Leave Comment
String Format Diagnostic Update

I'm working on updating String.Format Diagnostics to VS2015.

This update will include a new ArgHole parser, that enables me to include colourisation of the format strings.



Currently working on updating the analysis engine, to use the results of the new parser.
So that it can...
- - - - -

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)
...

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

Search My Blog

Recent Entries

Recent Comments