Click here to Skip to main content
15,883,883 members
Articles / Security / Encryption

Enhanced String Handling II

Rate me:
Please Sign up or sign in to vote.
3.76/5 (11 votes)
16 Dec 2010CPOL2 min read 35.8K   213   15  
Overcoming limitations of: Enhanced String Handling
<?xml version="1.0"?>
<configuration>
	<appSettings>
		<add key="Flat" value="testing"/>
		<add key="Static flat" value="Static evaluation of flat: {key::flat}"/>
		<add key="Static date" value="Static evaluation of date: {date::yyyy.MM.dd}"/>
		<add key="Dynamic current directory" value="current dir: {CurrentDir::}"/>
		
		<!-- temp is inaccessible with the Config class -->
		<add key="temp" value="SpecialDirectory\{key::flat}\{key::Stamp}"/>
		<add key="Dynamic current path" value="{key::dynamic current directory}\{key::temp}"/>
		<add key="Stamp" value="{CurrentTime::yyyyMMddHHmmssfff}"/>
		<add key="Stamp2" value="{CurrentTime::dd/MM/yyyy HH:mm:ss::-1d}"/>
		<add key="Stamp3" value="{CurrentTime::dd/MM/yyyy HH:mm:ss::}"/>
	</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
avifarah@gmail.com

Comments and Discussions