Tom Faust

Senior Software Engineer

,

Accomplished senior software engineer and web developer with proven ability to design and develop complex applications and improvements for major corporations and government organizations.  Passionate about formulating and implementing front-end custom web development solutions for large-scale enterprise clients. Skilled in multiple industries, including healthcare, business accounting, publishing, intelligent agents, public utilities, catalog and retail marketing, this conscientious developer uses his exemplary analytical/critical thinking, problem-solving skills and software experience to create reliable and maintainable systems.

Share this story
Previous team member: Eric Edmonds Next team member: Chris Finlayson
Tom's Blog Posts

How To Set the Android Target APK Level for PhoneGap

,
January 22, 2019 / No Comment

Attain Hassle-Free Acceptance of Your Google Play Application with PhoneGap.
 
I’ve been working on a mobile task management application that is currently in Open Beta on Android, and as December was waning, I knew I needed to add a few months to the beta expiration date that was currently set to expire on December 31, 2018. After extending […]
Read more

Share this story
AUTHOR: CATEGORY: Blog

Locking a Block of Code With an Integer

,
June 27, 2016 / No Comment

I was talking with a developer recently who was convinced that you could use a static integer variable to lock a block of code merely by casting it to an object, like this

First it must be noted that an integer cannot be used by itself in a lock statement because it is a value type. But when you […]
Read more

Share this story
AUTHOR: CATEGORY: .Net, Blog, C#

Making Sense of AssemblyVersion Numbers

,
March 15, 2016 / No Comment

The components of a Microsoft DLL or EXE version number are Major, Minor, Build and Revision. According to Microsoft, the components are used by convention as follows:
Major: Assemblies with the same name but different major versions are not interchangeable. A higher version number might indicate a major rewrite of a product where backward compatibility cannot be assumed.
Minor: If […]
Read more

Share this story
AUTHOR: CATEGORY: .Net, Blog

Display a Custom Tooltip at the Mouse Position on a Large WPF Control

,
December 16, 2015 / No Comment

In my work for an electric utility, we have a WPF based map control used to show the location of power lines, along with other devices such as transformers and points of service. We wanted to show a tooltip when a user clicks on one of the power lines to identify what is called the “feeder”, which essentially defines the […]
Read more

Share this story
AUTHOR: CATEGORY: .Net, Blog, C#

When to Use and Not Use var in C#

,
July 9, 2015 / 5 Comments

Many languages, particularly scripting languages, have a loosely typed variable type named var. In these languages, var can hold any type of data. If you place a number into a var then it will be interpreted as a number whenever possible. If you enter text it will be interpreted as a string, etc. ‘var’s can even hold various objects and […]
Read more

Share this story
AUTHOR: CATEGORY: Blog, Uncategorized

5 responses to “When to Use and Not Use var in C#

    1. Good question. No, there is never a case where you absolutely have to use var. Var is compiler magic introduced in C# 3.0 that compiles to exactly the same IL as if you had specified the variable type literally. But it does help, for instance, in the case where you ‘select new { cust.Name, cust.Phone }’ in a Linq expression, by not requiring you to create a class to receive the results. Var handles this for you automatically within the compiler. (See more here)

Leave a Reply

Your email address will not be published. Required fields are marked *