Quantcast
Channel: Leaning Into Windows
Browsing all 30 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

More on the VB 9.0 Compiler Bug

Let me give a little more information on the project which demonstrated the VB 9.0 compiler bug and think its best illustrated with a picture. In addition to having the accidently file reference from a...

View Article


Image may be NSFW.
Clik here to view.

Detals of the VB 9.0 Compiler Bug

I’ve just posted a explanation of the VB 9.0 compiler bug at my website. I decided to post rather than blog because this represents my current best understanding of the problem. I want to keep a single...

View Article


Image may be NSFW.
Clik here to view.

C# 3.0, VB 9.0 and Anonymous Types

Rick Strahl talks about new C# 3.0 features, but leaves a few questions…Why can’t you change the property values instances of anonymous types?The problem is that instance of anonymous types are hashed...

View Article

Image may be NSFW.
Clik here to view.

KB Article on VB Compiler Bug is Posted

The VB team posted the KB article on the VB 9.0 compiler bug I’ve been talking about. It’s at KB945425 an titled “Lines of code may be missing if you compile a solution that has a complex project...

View Article

Image may be NSFW.
Clik here to view.

System.Addin “The target application domain has been unloaded”

I have just escaped an Alice in Wonderland type maze with System.AddIn namespace. It’s a bit of a nightmare to create the plumbing for an add-in so stay tuned in Visual Studio Magazine for a column on...

View Article


Image may be NSFW.
Clik here to view.

Why You Care About System.AddIn

When I was fighting with AppDomains to support XML Linq code generation in my new Workflow based code generator, Bill McCarthy said “Hey did you look at System.AddIn” and I said “No, silly I’m not...

View Article

Image may be NSFW.
Clik here to view.

DNR TV on .NET 3.5 Languages - Part 1 Posted

Check out .NET Rocks TV this week for the first of two parts on .NET 3.5 languages - that's right C# 3.0 and VB 9 together.  It makes sense since most features cross over, and where they don't you'll...

View Article

Image may be NSFW.
Clik here to view.

Let’s Talk Templates

Code generation templates have several competing pressures – they need to be easy to use and they need to be powerful. They need to be flexible but encourage best practices. If you ever say “my...

View Article


Image may be NSFW.
Clik here to view.

XML Literal Code Generation

You must use VB for XML Literal Code Generation. Sorry, that’s life. I don’t have a crystal ball on this, but for now even if you’re a C# programmer you’ve got to suck it up and use VB. The code you...

View Article


Image may be NSFW.
Clik here to view.

XML Literal Code Generation - Code again

OK, that code listing got friend on load. Let me try again.    PrivateFunction MemberDataPortalFetch() AsString      Return _<code>   Private Overloads Sub DataPortal_Fetch(ByVal criteria As...

View Article

Image may be NSFW.
Clik here to view.

XML Literal Code Genaration - Code again again

Crap.  For now, I'm just removing the coloring. Paste this into VS for coloring. It's much prettier:   Private Function MemberDataPortalFetch() As String      ' TODO: Add special handing for timestamp...

View Article

Image may be NSFW.
Clik here to view.

Code for DNR TV # 97 and #98 Sample Code

Sometimes I drop the ball and I did on getting these samples posted. Note that this is for the two episodes I did on 3.5 languages. I think these episodes are a good run through of the features in both...

View Article

Image may be NSFW.
Clik here to view.

The Punch Line

 I mentioned a few days ago that there was a punch line for the XML Literal Code Generation. I planned to unveil this slowly, but it just sprung out of the box when Carl posted episode #102 (which I...

View Article


Image may be NSFW.
Clik here to view.

.NET Template Organization

 So, now that you know where I’m going with this – language neutral templates – I want to step back to the basics. Even if you don’t want to build language neutral templates, there are things to learn...

View Article

Image may be NSFW.
Clik here to view.

Inheritance and Templates

One of the most valuable things about templates written in .NET code of any style is the ability to use inheritance. This is classic inheritance where local state allows you to push functionality into...

View Article


Image may be NSFW.
Clik here to view.

Two Parallel Entities - Metadata and Info

One of the confusing things about templating is that you are writing two programs simultaneously and there is no way around it. My brilliant son may write a templating language for a class project, and...

View Article

Image may be NSFW.
Clik here to view.

CurrentTypeInfo and the Context Stack

Creating templates requires a lot of access to the thing you’re currently creating. That’s the current output type, which as I discussed in yesterday I suffix with “Info.” The CurrentTypeInfo is thus...

View Article


Image may be NSFW.
Clik here to view.

Isolating Metadata

In code generation, metadata is the information about your application, generally about your database and definitions to express your data as business objects. If you use Entity Framework, your...

View Article

Image may be NSFW.
Clik here to view.

Open Source

It’s occurred to me that if you are following this and my DNR TV show a logical reaction would be “OK, so that’s a lot of hot air, where do I get it?” I intend for all of this to be released Open...

View Article

Image may be NSFW.
Clik here to view.

To “as” or not to “as”

Iris Classon is asking and finding answers for “stupid” questions on her blog. First of all, they are definitely not stupid questions. There are a lot of nuances of .NET that slip out of our daily...

View Article
Browsing all 30 articles
Browse latest View live