The present invention provides efficient mechanisms for passing localized
resources into an executed file. To pass those localized resource values
into an executable program, the invention provides for iterating over a
resource file, and identifying one or more of the resource references
contained within the resource file. The invention also provides for
generating one or more corresponding program classes that flexibly treat
the identified resource as a function or a property, depending on how one
such as a developer calls the generated class. Thus, a developer will
only need to refer to the generated class, rather than write a specific
routine for a given resource within the resource file. And since a
developer passes the generated class as a constant, a developer is more
likely to find program errors at compile time before sending out the
final product.