<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Vadim's Weblog &#187; Uncategorized</title>
	<atom:link href="http://vkreynin.wordpress.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://vkreynin.wordpress.com</link>
	<description>Never stop learning.</description>
	<lastBuildDate>Wed, 26 Aug 2009 11:54:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vkreynin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1173064e3df3d2dd6e336993810ee5b5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Vadim's Weblog &#187; Uncategorized</title>
		<link>http://vkreynin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vkreynin.wordpress.com/osd.xml" title="Vadim&#8217;s Weblog" />
		<item>
		<title>Pex: Automated Explorary Testing for .NET is out.</title>
		<link>http://vkreynin.wordpress.com/2008/05/23/pex-automated-explorary-testing-for-net-is-out/</link>
		<comments>http://vkreynin.wordpress.com/2008/05/23/pex-automated-explorary-testing-for-net-is-out/#comments</comments>
		<pubDate>Sat, 24 May 2008 02:31:31 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/05/23/pex-automated-explorary-testing-for-net-is-out/</guid>
		<description><![CDATA[Jonathan &#8216;Peli&#8217; de Halleux, original creator of MbUnit, and Nikolai Tillmann released Pex under Microsoft Research license.
In order to get better idea what Pex is, I would recommend to watch a screencast, it&#8217;s only 6 minutes long.
I also would recommend to listen to Scott Hanseman&#8217;s podcast Hanselminutes where Scott interviews Peli and Nickolai.
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=93&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://blog.dotnetwiki.org/" target="_blank">Jonathan &#8216;Peli&#8217; de Halleux</a>, original creator of <a href="http://www.mbunit.com/" target="_blank">MbUnit</a>, and <a href="http://blogs.msdn.com/nikolait/" target="_blank">Nikolai Tillmann</a> released <a title="Automated Exploratory Testing for .NET" href="http://research.microsoft.com/pex/" target="_blank">Pex</a> under Microsoft Research license.</p>
<p>In order to get better idea what Pex is, I would recommend to watch a <a title="Implementing and Testing a string Chunker" href="http://research.microsoft.com/pex/screencast.aspx" target="_blank">screencast</a>, it&#8217;s only 6 minutes long.</p>
<p>I also would recommend to listen to <a href="http://www.hanselman.com/blog/" target="_blank">Scott Hanseman</a>&#8217;s podcast <a href="http://www.hanselminutes.com" target="_blank">Hanselminutes</a> where <a title="&lt;Pex with Jonathan 'Peli' de Halleux and Nikolai Tillmann/&gt;" href="http://www.hanselminutes.com/default.aspx?showID=111" target="_blank">Scott interviews Peli and Nickolai</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vkreynin.wordpress.com/93/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vkreynin.wordpress.com/93/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=93&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2008/05/23/pex-automated-explorary-testing-for-net-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
		<item>
		<title>Enum Conversion.</title>
		<link>http://vkreynin.wordpress.com/2007/10/19/enum-conversion/</link>
		<comments>http://vkreynin.wordpress.com/2007/10/19/enum-conversion/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 11:29:47 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/10/19/enum-conversion/</guid>
		<description><![CDATA[In this post I will demonstrate how to convert Enum To String, String To Enum, and Value to Enum.
First of all let us create an enumeration:


   1: enum Colors
   2: {
   3:     Blue = 1, 
   4:     Green = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=59&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In this post I will demonstrate how to convert <a href="http://msdn2.microsoft.com/en-us/library/system.enum.aspx" target="_blank">Enum</a> To String, String To <a href="http://msdn2.microsoft.com/en-us/library/system.enum.aspx" target="_blank">Enum</a>, and Value to <a href="http://msdn2.microsoft.com/en-us/library/system.enum.aspx" target="_blank">Enum</a>.</p>
<p>First of all let us create an enumeration:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">enum</span> Colors</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     Blue = 1, </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     Green = 2, </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     Red = 4</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> }</pre>
</div>
</div>
<p>&nbsp;</p>
<h4>Convert Enum To String.</h4>
<p>It seams that nothing can be easier.&nbsp; We easily can use <a href="http://msdn2.microsoft.com/en-us/library/16c1xs4z.aspx" target="_blank">ToString()</a> method to convert <a href="http://msdn2.microsoft.com/en-us/library/system.enum.aspx" target="_blank">Enum</a> to String.&nbsp; It&nbsp;would work fine if we try to convert Colors.Green, Colors.Blue, or Color.Red.&nbsp; However, what if we try to convert to String value like this:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> Colors myColor = Colors.Green | Colors.Blue;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> Console.WriteLine(myColor.ToString());</pre>
</div>
</div>
<p>The output will be &#8216;3&#8242; instead of &#8216;Blue, Green&#8217;.</p>
<p>There are two ways we can solve this problem:</p>
<p>We can just add <a href="http://msdn2.microsoft.com/en-us/library/system.flagsattribute.aspx" target="_blank">FlagsAttribute</a> to our enumeration.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> [FlagsAttribute]</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">enum</span> Colors</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     Blue = 1, </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     Green = 2, </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     Red = 4</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> }</pre>
</div>
</div>
<p>Or another solution we can use <a href="http://msdn2.microsoft.com/en-us/library/a0h36syw.aspx" target="_blank">Format()</a> or <a href="http://msdn2.microsoft.com/en-us/library/a0h36syw.aspx" target="_blank">ToString()</a>&nbsp;methods with format &#8220;F&#8221; or &#8220;f&#8221;.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> Colors myColor = Colors.Green | Colors.Blue;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> Console.WriteLine(Enum.Format(<span style="color:#0000ff;">typeof</span>(Colors), myColor, <span style="color:#006080;">"F"</span>));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> Console.WriteLine(myColor.ToString(<span style="color:#006080;">"f"</span>));</pre>
</div>
</div>
<p>In case you decorated your enumertion with&nbsp;<a href="http://msdn2.microsoft.com/en-us/library/system.flagsattribute.aspx" target="_blank">FlagsAttribute</a> but want to output the value, use <a href="http://msdn2.microsoft.com/en-us/library/a0h36syw.aspx" target="_blank">Format()</a> or <a href="http://msdn2.microsoft.com/en-us/library/a0h36syw.aspx" target="_blank">ToString()</a>&nbsp;methods with format &#8220;D&#8221; for decimal form or &#8220;X&#8221; for hexadecimal one.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> Colors myColor = Colors.Green | Colors.Blue;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#008000;">// Format()</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> Console.WriteLine(Enum.Format(<span style="color:#0000ff;">typeof</span>(Colors), myColor, <span style="color:#006080;">"d"</span>));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> Console.WriteLine(Enum.Format(<span style="color:#0000ff;">typeof</span>(Colors), myColor, <span style="color:#006080;">"x"</span>));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> <span style="color:#008000;">// ToString()</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> Console.WriteLine(myColor.ToString(<span style="color:#006080;">"D"</span>));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> Console.WriteLine(myColor.ToString(<span style="color:#006080;">"X"</span>));</pre>
</div>
</div>
<p>The&nbsp;method with format &#8220;D&#8221;&nbsp;will output &#8216;3&#8242; and&nbsp;with&nbsp;format &#8220;X&#8221;&nbsp;will give us &#8216;00000003&#8242;. </p>
<p>&nbsp;</p>
<h4>Convert String To Enum.</h4>
<p>To convert String to <a href="http://msdn2.microsoft.com/en-us/library/system.enum.aspx" target="_blank">Enum</a> we just need to use <a href="http://msdn2.microsoft.com/en-us/library/essfb559.aspx" target="_blank">Parse()</a> method.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> Colors String2Enum(<span style="color:#0000ff;">string</span> colorString)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     <span style="color:#0000ff;">return</span> (Colors)Enum.Parse(<span style="color:#0000ff;">typeof</span>(Colors), colorString);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> }</pre>
</div>
</div>
<p>In the example above&nbsp;colorString must match case exactly.&nbsp; There&#8217;s an override for <a href="http://msdn2.microsoft.com/en-us/library/kxydatf9.aspx" target="_blank">Parse()</a> method where you can ask to ignore case.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> Colors String2Enum(<span style="color:#0000ff;">string</span> colorString)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     <span style="color:#0000ff;">return</span> (Colors)Enum.Parse(<span style="color:#0000ff;">typeof</span>(Colors), colorString, <span style="color:#0000ff;">true</span>);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> }</pre>
</div>
</div>
<h4>&nbsp;</h4>
<h4>Convert Value To Enum.</h4>
<p>We will use <a href="http://msdn2.microsoft.com/en-us/library/system.enum.toobject.aspx" target="_blank">ToObject()</a> method to convert value to <a href="http://msdn2.microsoft.com/en-us/library/system.enum.aspx" target="_blank">Enum</a>.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> Colors Value2Enum(<span style="color:#0000ff;">int</span> colorValue)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     <span style="color:#0000ff;">return</span> (Colors)Enum.ToObject(<span style="color:#0000ff;">typeof</span>(Colors), colorValue);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> }</pre>
</div>
</div>
<p><strong>Update</strong>: Thanks to Omer Mor (see his&nbsp;comment below)&nbsp;who pointed out that we don&#8217;t have to invoke ToObject() method.&nbsp; We can simply cast value to Enum type.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> Colors Value2Enum(<span style="color:#0000ff;">int</span> colorValue)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     <span style="color:#0000ff;">return</span> (Colors) colorValue;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> }</pre>
</div>
</div>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2007%2f10%2f19%2fenum-conversion%2f"><img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2007%2f10%2f19%2fenum-conversion%2f" border="0"></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vkreynin.wordpress.com/59/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vkreynin.wordpress.com/59/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=59&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2007/10/19/enum-conversion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2007%2f10%2f19%2fenum-conversion%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Watch out for escape characters.</title>
		<link>http://vkreynin.wordpress.com/2007/09/22/watch-out-for-escape-characters/</link>
		<comments>http://vkreynin.wordpress.com/2007/09/22/watch-out-for-escape-characters/#comments</comments>
		<pubDate>Sat, 22 Sep 2007 21:54:10 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/09/22/watch-out-for-escape-characters/</guid>
		<description><![CDATA[You have to be aware of the escape characters when you&#160;parse a&#160;file&#160;&#160;character by character.&#160; For instance if you try to read a file that contains &#8220;C:\bigFile.txt&#8221; you&#8217;ll get back &#8220;C:igFile.txt&#8221; or something like this.
If you don&#8217;t believe me, try it&#160;yourselves.


   1: public void ParseString()
   2: {
   3:   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=42&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You have to be aware of the escape characters when you&nbsp;parse a&nbsp;file&nbsp;&nbsp;character by character.&nbsp; For instance if you try to read a file that contains &#8220;C:\bigFile.txt&#8221; you&#8217;ll get back &#8220;C:igFile.txt&#8221; or something like this.</p>
<p>If you don&#8217;t believe me, try it&nbsp;yourselves.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> ParseString()</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     <span style="color:#0000ff;">string</span> text = <span style="color:#006080;">"C:\bigFile.txt"</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     <span style="color:#0000ff;">string</span> newText = <span style="color:#0000ff;">string</span>.Empty;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     <span style="color:#0000ff;">foreach</span> (<span style="color:#0000ff;">char</span> c <span style="color:#0000ff;">in</span> text)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>         newText += c;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     Console.WriteLine(newText);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> }</pre>
</div>
</div>
<p>Below I provided a table of escape character for you and myself to reference later.</p>
<table cellspacing="0" cellpadding="2" width="398" border="1">
<tbody>
<tr>
<td valign="top" width="74"><strong>Char</strong></td>
<td valign="top" width="67"><strong>ASCII Dec#</strong></td>
<td valign="top" width="48"><strong>ASCII Hex#</strong></td>
<td valign="top" width="56"><strong>ASCII Name</strong></td>
<td valign="top" width="31"><strong>Ctrl Char</strong></td>
<td valign="top" width="118"><strong>Description</strong></td>
</tr>
<tr>
<td valign="top" width="74"></td>
<td valign="top" width="66">00</td>
<td valign="top" width="51">00</td>
<td valign="top" width="56">NUL</td>
<td valign="top" width="31">^@</td>
<td valign="top" width="118">null</td>
</tr>
<tr>
<td valign="top" width="73">\a</td>
<td valign="top" width="65">07</td>
<td valign="top" width="53">07</td>
<td valign="top" width="56">BEL</td>
<td valign="top" width="31">^G</td>
<td valign="top" width="118">Alert</td>
</tr>
<tr>
<td valign="top" width="73">\b</td>
<td valign="top" width="65">08</td>
<td valign="top" width="54">08</td>
<td valign="top" width="56">BS</td>
<td valign="top" width="31">^H</td>
<td valign="top" width="118">Backspace</td>
</tr>
<tr>
<td valign="top" width="72">\f</td>
<td valign="top" width="65">12</td>
<td valign="top" width="55">0C</td>
<td valign="top" width="56">FF</td>
<td valign="top" width="31">^L</td>
<td valign="top" width="118">Form feed</td>
</tr>
<tr>
<td valign="top" width="72">\n</td>
<td valign="top" width="65">10</td>
<td valign="top" width="55">0A</td>
<td valign="top" width="56">LF</td>
<td valign="top" width="31">^J</td>
<td valign="top" width="118">New line</td>
</tr>
<tr>
<td valign="top" width="72">\r</td>
<td valign="top" width="65">13</td>
<td valign="top" width="55">0D</td>
<td valign="top" width="56">CR</td>
<td valign="top" width="31">^M</td>
<td valign="top" width="118">Carriage return</td>
</tr>
<tr>
<td valign="top" width="72">\t</td>
<td valign="top" width="65">09</td>
<td valign="top" width="55">09</td>
<td valign="top" width="56">HT</td>
<td valign="top" width="31">^I</td>
<td valign="top" width="118">Horizontal tab</td>
</tr>
<tr>
<td valign="top" width="72">\v</td>
<td valign="top" width="65">11</td>
<td valign="top" width="55">0B</td>
<td valign="top" width="56">VT</td>
<td valign="top" width="31">^K</td>
<td valign="top" width="118">Vertical tab</td>
</tr>
<tr>
<td valign="top" width="72">\&#8221;</td>
<td valign="top" width="65">34</td>
<td valign="top" width="55">22</td>
<td valign="top" width="56">N/A</td>
<td valign="top" width="31">N/A</td>
<td valign="top" width="118">Double quote</td>
</tr>
<tr>
<td valign="top" width="72">\&#8217;</td>
<td valign="top" width="65">39</td>
<td valign="top" width="55">27</td>
<td valign="top" width="56">N/A</td>
<td valign="top" width="31">N/A</td>
<td valign="top" width="118">Single quote</td>
</tr>
<tr>
<td valign="top" width="72">\\</td>
<td valign="top" width="65">92</td>
<td valign="top" width="55">5C</td>
<td valign="top" width="56">NA</td>
<td valign="top" width="31">N/A</td>
<td valign="top" width="118">Backslash</td>
</tr>
<tr>
<td valign="top" width="72">\u####</td>
<td valign="top" width="65">N/A</td>
<td valign="top" width="55">N/A</td>
<td valign="top" width="56">N/A</td>
<td valign="top" width="31">N/A</td>
<td valign="top" width="118">Unicode escape</td>
</tr>
<tr>
<td valign="top" width="72">\x##</td>
<td valign="top" width="65">N/A</td>
<td valign="top" width="55">N/A</td>
<td valign="top" width="56">N/A</td>
<td valign="top" width="31">N/A</td>
<td valign="top" width="118">Unicode escape</td>
</tr>
<tr>
<td valign="top" width="72">\Uxxxxxx</td>
<td valign="top" width="65">N/A</td>
<td valign="top" width="55">N/A</td>
<td valign="top" width="56">N/A</td>
<td valign="top" width="31">N/A</td>
<td valign="top" width="118">Unicode escape</td>
</tr>
</tbody>
</table>
<p>Let me know if I miss anything.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vkreynin.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vkreynin.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=42&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2007/09/22/watch-out-for-escape-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
		<item>
		<title>Learn TDD with MbUnit</title>
		<link>http://vkreynin.wordpress.com/2007/07/12/learn-tdd-with-mbunit/</link>
		<comments>http://vkreynin.wordpress.com/2007/07/12/learn-tdd-with-mbunit/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 10:52:40 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/07/12/learn-tdd-with-mbunit/</guid>
		<description><![CDATA[Wednesday, July 18, I&#8217;m going to talk about TDD with MbUnit at Florida .NET user group.&#160; If you are in Ft. Lauderdale area, you are&#160;&#160;welcome to come.&#160; Free pizza will be provided.&#160; The meeting will take place at Microsoft Southeast District building at 6:30 PM.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=31&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Wednesday, July 18, I&#8217;m going to talk about TDD with MbUnit at <a href="http://www.fladotnet.com/" target="_blank">Florida .NET user group</a>.&nbsp; If you are in Ft. Lauderdale area, you are&nbsp;&nbsp;welcome to come.&nbsp; <a href="http://www.fladotnet.com/Reg.aspx?EventID=265" target="_blank">Free pizza</a> will be provided.&nbsp; The meeting will take place at <a href="http://www.microsoft.com/about/companyinformation/usaoffices/southeast/ftlauderdale.mspx" target="_blank">Microsoft Southeast District building</a> at 6:30 PM.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vkreynin.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vkreynin.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=31&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2007/07/12/learn-tdd-with-mbunit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
		<item>
		<title>Looking for good developers.</title>
		<link>http://vkreynin.wordpress.com/2007/06/27/looking-for-good-developers/</link>
		<comments>http://vkreynin.wordpress.com/2007/06/27/looking-for-good-developers/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 11:22:26 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/06/27/looking-for-good-developers/</guid>
		<description><![CDATA[The company I work for, Ultimate Software, is always in search for good, passionate C# developers to engineer its next-generation, Enterprise HR and Payroll software solution.  The company is located  in sunny South Florida where weather is always great.  During my career as a developer I worked in many different companies but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=29&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The company I work for, <a href="http://www.ultimatesoftware.com/" title="Ultimate Software" target="_blank">Ultimate Software</a>, is always in search for good, passionate C# developers to engineer its next-generation, Enterprise HR and Payroll software solution.  The company is located  in sunny South Florida where weather is always great.  During my career as a developer I worked in many different companies but Ultimate Software is by far the best company I&#8217;ve worked for so far.  The company earns <a href="http://biz.yahoo.com/bw/070625/20070625005872.html?.v=1" target="_blank">top ranking</a> on &#8220;<a href="http://www.greatplacetowork.com/best/list-sme.htm" target="_blank">Great Place to Work</a>&#8221; third year in a row.  This year, and last year we made #3 Best Medium-Sized Company to Work for in America.</p>
<p>Ultimate Software&#8217;s development environment is very Agile.  We practice <a href="http://en.wikipedia.org/wiki/Scrum_(development)" title="Scrum (development)" target="_blank">Scrum</a> methodology.  We also doing TDD and our unit test framework is <a href="http://www.mbunit.com/" target="_blank">MbUnit</a>.</p>
<p>If you want to work on the cutting edge of software development processes and technology, in an extremely programmer friendly environment with very smart, extremely knowledgeable developers, apply for one of Ultimate Software&#8217;s developer openings below.</p>
<p>Two developer positions currently open:</p>
<p><a href="https://www.ultirecruit.com/USG1006/JobBoard/JobDetails.aspx?__ID=*725A6AA19C173765" target="_blank">C# MIDDLE TIER OBJECT PROGRAMMER</a></p>
<p><a href="https://www.ultirecruit.com/USG1006/JobBoard/JobDetails.aspx?__ID=*30BE99C7A12B1682" target="_blank">ASP.net/C# INTEGRATION DEVELOPER</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vkreynin.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vkreynin.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=29&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2007/06/27/looking-for-good-developers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
		<item>
		<title>Timer class</title>
		<link>http://vkreynin.wordpress.com/2007/04/08/timer-class/</link>
		<comments>http://vkreynin.wordpress.com/2007/04/08/timer-class/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 17:16:00 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/08/timer-class/</guid>
		<description><![CDATA[I was checking the difference in performance between SqlDataReader and DataTableReader.  I needed something to measure time with.  I wrote a simple class Timer.  It worked just fine for me; however,  I find it hard to believe that .Net framework doesn’t have anything to measure time.  The reason for this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=12&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was checking the difference in performance between SqlDataReader and DataTableReader.  I needed something to measure time with.  I wrote a simple class Timer.  It worked just fine for me; however,  I find it hard to believe that .Net framework doesn’t have anything to measure time.  The reason for this post is that I hope that someone can suggest a better solution to my Timer class.<br />Here’s there Timer class:<br /><code><br />
<blockquote>public class Timer<br />{<br />&nbsp;&nbsp;long _start;<br />&nbsp;&nbsp;long _stop;</p>
<p>&nbsp;&nbsp;public void Start()<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;_start = GetTimeInMilliseconds();<br />&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;public void Stop()<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;_stop = GetTimeInMilliseconds();<br />&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;public long TimeElapsed<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;get { return _stop - _start; }<br />&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private long GetTimeInMilliseconds()<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;return DateTime.Now.Hour * 60 * 60 * 1000<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ DateTime.Now.Minute * 60 * 1000<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ DateTime.Now.Second * 1000<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ DateTime.Now.Millisecond;<br />&nbsp;&nbsp;}<br />}</p></blockquote>
<p></code></p>
<p>In case you’re interested in performance difference between SqlDataReader and DataTableReader.  Here’re my findings:<br />On single CPU machine SqlDataReader was faster and it of course was expected.  However, on double CPU machine DataTableReader was slightly faster and this was a pleasant surprise for me.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vkreynin.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vkreynin.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=12&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2007/04/08/timer-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
	</channel>
</rss>