<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.microsoft.co.il/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Smallfish - All Comments</title><link>http://blogs.microsoft.co.il/blogs/smallfish/</link><description>Tips, Tricks, Shticks &amp;amp; Anything That Can Help You Be better Developer</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: How to configure WCF REST service hosted in IIS (properly)?</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2008/12/30/how-to-configure-wcf-rest-service-hosted-in-iis-properly.aspx#872145</link><pubDate>Thu, 21 Jul 2011 02:18:11 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:872145</guid><dc:creator>Angelo Laris</dc:creator><description>&lt;p&gt;You can also fix it by &lt;/p&gt;
&lt;p&gt;Factory=&amp;quot;System.ServiceModel.Activation.WebServiceHostFactory&amp;quot;&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=872145" width="1" height="1"&gt;</description></item><item><title>re: Quality Code Short Tip #3 – Use Nested Class for Constants</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/12/25/quality-code-short-tip-3-use-nested-class-for-constants.aspx#777909</link><pubDate>Fri, 28 Jan 2011 14:23:05 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:777909</guid><dc:creator>albert</dc:creator><description>&lt;p&gt;Do you think all the users in the web can read right to Left. Why these kind of layouts are choosen&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=777909" width="1" height="1"&gt;</description></item><item><title>re: How to configure WCF REST service hosted in IIS (properly)?</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2008/12/30/how-to-configure-wcf-rest-service-hosted-in-iis-properly.aspx#744190</link><pubDate>Tue, 16 Nov 2010 21:57:14 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:744190</guid><dc:creator>Raj</dc:creator><description>&lt;p&gt;Thanks for the solution.Was looking for it for a while.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=744190" width="1" height="1"&gt;</description></item><item><title>re: How To Get A Property Name Using Lambda Expression in C# 3.0</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/04/02/how-to-get-a-property-name-using-lambda-expression-in-c-3-0.aspx#673499</link><pubDate>Thu, 01 Jul 2010 10:15:46 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:673499</guid><dc:creator>Maxence Bonhomme</dc:creator><description>&lt;p&gt;Great thank you!&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=673499" width="1" height="1"&gt;</description></item><item><title>re: How To Get A Property Name Using Lambda Expression in C# 3.0</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/04/02/how-to-get-a-property-name-using-lambda-expression-in-c-3-0.aspx#534471</link><pubDate>Thu, 04 Mar 2010 19:45:20 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:534471</guid><dc:creator>Hans 'herzl'</dc:creator><description>&lt;p&gt;using System;&lt;/p&gt;
&lt;p&gt;using System.Linq.Expressions;&lt;/p&gt;
&lt;p&gt;public partial class Default : System.Web.UI.Page&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;String[] GetNames&amp;lt;T&amp;gt;(params Expression&amp;lt;Func&amp;lt;T&amp;gt;&amp;gt;[] BLOCKED EXPRESSION&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var array = new String[expressions.Length];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (var i = 0; i &amp;lt; expressions.Length; i++)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var item = expressions[i];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var memberExpression = item.Body as MemberExpression;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array[i] = memberExpression.Member.Name;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return array;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;protected void Page_Load(Object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (IsPostBack)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var obj = new Employee();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var array0 = GetNames(() =&amp;gt; obj.LastName); //Gets an array or 1 element&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var array1 = GetNames(() =&amp;gt; obj.LastName, () =&amp;gt; obj.FirstName); //Gets an array of 2 elements&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//var array2 = GetNames(() =&amp;gt; obj.Id, () =&amp;gt; obj.LastName, () =&amp;gt; obj.FirstName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp;Error, because property data types are differents&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp;I need a method that gets String array from differents property types&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;public class Employee&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public Employee()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: base()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public Int32 Id&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public String LastName&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public String FirstName&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=534471" width="1" height="1"&gt;</description></item><item><title>re: How To Create XAML Markup Extension in WPF – Creating the Now markup extension</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/04/19/how-to-create-xaml-markup-extension-in-wpf-creating-the-now-markup-extension.aspx#530449</link><pubDate>Sun, 28 Feb 2010 13:31:08 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:530449</guid><dc:creator>Vitor Morais</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you give an example how to use your code? Thanks.&lt;/p&gt;
&lt;p&gt;Vitor&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=530449" width="1" height="1"&gt;</description></item><item><title>Hosting WCF REST in IIS &amp;laquo; Monsieur Rask</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2008/12/30/how-to-configure-wcf-rest-service-hosted-in-iis-properly.aspx#445649</link><pubDate>Sun, 15 Nov 2009 20:18:20 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:445649</guid><dc:creator>Hosting WCF REST in IIS « Monsieur Rask</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Hosting WCF REST in IIS &amp;amp;laquo; Monsieur Rask&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=445649" width="1" height="1"&gt;</description></item><item><title>re: How To Get A Property Name Using Lambda Expression in C# 3.0</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/04/02/how-to-get-a-property-name-using-lambda-expression-in-c-3-0.aspx#436874</link><pubDate>Mon, 02 Nov 2009 21:29:39 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:436874</guid><dc:creator>Sergey Ivanchenkov, The Russian</dc:creator><description>&lt;p&gt;You are DA MAN! (i.e. &amp;quot;The Man&amp;quot; in Black vibe).&lt;/p&gt;
&lt;p&gt;I've pasted your method snippet, changed access modifier, called it in code and &amp;quot;YES!&amp;quot; it worked. I am gonna use it going forward. I consider myself very good with C# but today I learned from you something new. That should be better than any other reward right here :))&lt;/p&gt;
&lt;p&gt;For poster &amp;quot;B&amp;quot;:&lt;/p&gt;
&lt;p&gt;here is a code example on how to use his method:&lt;/p&gt;
&lt;p&gt;string propName = YourNamespace.YourStaticClass.MethodNameShownAbove(()=&amp;gt;ClassInstanceWithProp.PropertyWhichRequiresNameFound);&lt;/p&gt;
&lt;p&gt;S.I.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=436874" width="1" height="1"&gt;</description></item><item><title>re: Quality Code Short Tip #2 – Don’t Create What Isn’t Required</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/10/07/quality-code-short-tip-2-don-t-create-what-isn-t-required.aspx#423732</link><pubDate>Sun, 11 Oct 2009 09:39:47 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:423732</guid><dc:creator>Yair Cohen</dc:creator><description>&lt;p&gt;@Offir, Thanks!&lt;/p&gt;
&lt;p&gt;Ok, I will update it soon.&lt;/p&gt;
&lt;p&gt;I totally agree with you that software should be able to &amp;quot;change or grow&amp;quot; but in means of extensibility points and not concrete implementations now that should support future.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=423732" width="1" height="1"&gt;</description></item><item><title>re: Quality Code Short Tip #2 – Don’t Create What Isn’t Required</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/10/07/quality-code-short-tip-2-don-t-create-what-isn-t-required.aspx#423370</link><pubDate>Sat, 10 Oct 2009 13:00:49 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:423370</guid><dc:creator>Offir Shvartz</dc:creator><description>&lt;p&gt;first of all the sign is dead-end and not one-way street.&lt;/p&gt;
&lt;p&gt;I must say I partial agree with you, it's good to think about the future while writing your code – you should not implement what you don't need but write your code in a way it could change or grow. This can help you easly maintain your code in the future.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=423370" width="1" height="1"&gt;</description></item><item><title>re: How To Get A Property Name Using Lambda Expression in C# 3.0</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/04/02/how-to-get-a-property-name-using-lambda-expression-in-c-3-0.aspx#338328</link><pubDate>Tue, 16 Jun 2009 18:27:19 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:338328</guid><dc:creator>B</dc:creator><description>&lt;p&gt;I was trying your idea of using this code to prevent using Strings as Property Name, with almost no success. Can you post an example usage (how you used it in ViewModelBase) please.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=338328" width="1" height="1"&gt;</description></item><item><title>re: Testing WCF Service using Visual Studio 2008 Unit Tests</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2008/11/28/testing-wcf-service.aspx#332381</link><pubDate>Mon, 08 Jun 2009 02:38:01 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:332381</guid><dc:creator>Amol Gholap</dc:creator><description>&lt;p&gt;Simple and sweet, like it!&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=332381" width="1" height="1"&gt;</description></item><item><title>re: Quick tip: When Visual Studio (2008) Stop Opening A Web Application In Web Browser</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2009/03/02/quick-tip-when-visual-studio-2008-stop-opening-a-web-application-in-web-browser.aspx#240162</link><pubDate>Tue, 03 Mar 2009 11:54:02 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:240162</guid><dc:creator>Amichai Sichel</dc:creator><description>&lt;p&gt;I had this problem too, and I couldn&amp;#39;t find how to solve it and ,unfortunately, my Team Leader wouldn&amp;#39;t have helped me with it, so I just got used to opening the browser manually.&lt;/p&gt;
&lt;p&gt;Thanks a-lot!&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=240162" width="1" height="1"&gt;</description></item><item><title>re: How to configure WCF REST service hosted in IIS (properly)?</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2008/12/30/how-to-configure-wcf-rest-service-hosted-in-iis-properly.aspx#211455</link><pubDate>Wed, 14 Jan 2009 23:13:21 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:211455</guid><dc:creator>Paul S</dc:creator><description>&lt;p&gt;Thanks, this solved my exact problem and I tried many other ideas over a couple of hrs.&lt;/p&gt;
&lt;p&gt;Good job sir&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=211455" width="1" height="1"&gt;</description></item><item><title>re: The stubborn "," or Why Does It Works on FireFox But Not on Internet Explorer</title><link>http://blogs.microsoft.co.il/blogs/smallfish/archive/2008/12/14/the-stubborn-quot-quot-or-why-does-it-works-on-firefox-but-not-on-internet-explorer.aspx#192361</link><pubDate>Sun, 14 Dec 2008 15:55:26 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:192361</guid><dc:creator>tomer</dc:creator><description>&lt;p&gt;Since IE and Firefox don't use the same JS interpreter, it won't render scripts equally. Still, you should always write Standards-compliant code.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=192361" width="1" height="1"&gt;</description></item></channel></rss>
