Implicit Expressions vs. Explicit Expressions


Implicit expressions and explicit expressions have some functional overlap and some functional differences. Often there will be no choice of which to use (e.g., Generate Local Resources always uses implicit expressions), but when you write your own code, you will have to choose between the two. Table 5.1 provides a comparison between implicit and explicit expressions.

Table 5.1. Comparison Between Implicit Expressions and Explicit Expressions
 

Implicit Expressions

Explicit Expressions

Access Local Resources

Yes

Yes

Access Global Resources

No

Yes

Created by Generate Local Resources

Yes

No

Use on Localizable Properties

Yes

Yes

Use on non-Localizable Properties

Yes

Yes

Use in Expressions Dialog

Yes

Yes

Use in HTML Attributes

No

Yes


From this table, you can see that explicit expressions have a greater scope, but you should weigh this against the additional effort of creating and maintaining explicit expressions.




.NET Internationalization(c) The Developer's Guide to Building Global Windows and Web Applications
.NET Internationalization: The Developers Guide to Building Global Windows and Web Applications
ISBN: 0321341384
EAN: 2147483647
Year: 2006
Pages: 213

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net