1

Closed

Helper constants

description

Classes containing helper constants should be created so that car names, track idents and steering methods can be expressed within a query without using plain strings. This makes it less error prone for the end user and provide them with some intellisense.
Closed Jul 3, 2008 at 5:19 PM by elkdanger
Constants for circuits, cars and steering methods have now been implemented. These constants can be used in your LinqToLfsWorld queries as strongly-typed values, instead of using strings to represent "XRG", "000" (for the Blackwood GP circuit ident) or "m" for mouse. You can now use CarTypes.XRG, CircuitTypes.BlackwoodGP and SteeringTypes.Mouse respectively.

comments

elkdanger wrote Jul 3, 2008 at 5:20 PM

These constants are now available as from revision 11323.

wrote Jan 21, 2013 at 6:38 PM

wrote May 13, 2013 at 7:12 PM