<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MoneyType Work Item Rss Feed</title><link>http://www.codeplex.com/MoneyType/WorkItem/List.aspx</link><description>MoneyType Work Item Rss Description</description><item><title>Commented Issue: Multiply and divide ignore the Currency [3437]</title><link>http://moneytype.codeplex.com/workitem/3437</link><description>&amp;#60;p&amp;#62;operator &amp;#42; and operator &amp;#47; both ignore the Currency of the amount being modified and return a Money for the current culture.  Code should be&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        public static Money operator &amp;#42;&amp;#40;Money left, Decimal right&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            return new Money&amp;#40;&amp;#40;&amp;#40;Decimal&amp;#41;left &amp;#42; right&amp;#41;, left._currency&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        public static Money operator &amp;#47;&amp;#40;Money left, Decimal right&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            return new Money&amp;#40;&amp;#40;&amp;#40;Decimal&amp;#41;left &amp;#47; right&amp;#41;, left._currency&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;thanks for prividing this project&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Paul&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: Marchy ** &lt;p&gt;Agreed, had made the same fix&lt;/p&gt;</description><author>Marchy</author><pubDate>Mon, 22 Oct 2012 02:27:50 GMT</pubDate><guid isPermaLink="false">Commented Issue: Multiply and divide ignore the Currency [3437] 20121022022750A</guid></item><item><title>Created Issue: Money(decimal, Currency) ignores second argument</title><link>http://moneytype.codeplex.com/WorkItem/View.aspx?WorkItemId=3629</link><description>Another subtle glitch&amp;#58; when supplying Currency as a second argument to Money ctor, that arg gets overridden. I think it&amp;#39;s the order of constructor calls that matters.&lt;br /&gt;</description><author>esteewhy</author><pubDate>Fri, 08 May 2009 15:10:59 GMT</pubDate><guid isPermaLink="false">Created Issue: Money(decimal, Currency) ignores second argument 20090508031059P</guid></item><item><title>Commented Issue: Code (re)usability improvements</title><link>http://moneytype.codeplex.com/WorkItem/View.aspx?WorkItemId=3628</link><description>Hello, great work&amp;#33; Found you at CodeProject first, than saw the code here, started using it and found some issues worth mentioning&amp;#58;&lt;br /&gt;&lt;br /&gt;-- I&amp;#39;d like to persist Money type as a string in a custom format, so it&amp;#39;s desirable to know if a given currency code is valid in the system. For this case to work i&amp;#39;ve introduced a Currency.TryParse&amp;#40;..&amp;#41; method with a semantic similar to that of some standard CLR value types.&lt;br /&gt;&lt;br /&gt;-- For UI purpose it&amp;#39;d be cool to have a list of all valid currencies, so i&amp;#39;ve exposed it via static Currency.Currencies property&lt;br /&gt;&lt;br /&gt;-- Presently, there&amp;#39;s no way to know if a given Currency instance represents a valid currency until you try to access any instance property and, possibly, get an InvalidOperationException -- ups, not nice&amp;#33; I&amp;#39;ve made these properties silently return default values if no matching currency was found. So at least the following snippet won&amp;#39;t cause an earthquake&amp;#58; new Currency&amp;#40;&amp;#41;.IsoNumericCode, but just silently return &amp;#34;0&amp;#34;. For the sake of consistency, i&amp;#39;ve also added Currency.Empty static instance.&lt;br /&gt;&lt;br /&gt;-- Finally, just to simplify a bit working with a huge source file, i&amp;#39;ve moved a part of Currency.cs into partial class file.&lt;br /&gt;Comments: ** Comment from web user: esteewhy ** &lt;p&gt;Ups, also, forgot to tell you&amp;#58; I&amp;#39;ve also created some helper methods to de&amp;#47;serialise Money to&amp;#47;fro string. Just in case smb. w&amp;#39;d be interested...&lt;/p&gt;</description><author>esteewhy</author><pubDate>Fri, 08 May 2009 13:24:21 GMT</pubDate><guid isPermaLink="false">Commented Issue: Code (re)usability improvements 20090508012421P</guid></item><item><title>Created Issue: Code (re)usability improvements</title><link>http://moneytype.codeplex.com/WorkItem/View.aspx?WorkItemId=3628</link><description>Hello, great work&amp;#33; Found you at CodeProject first, than saw the code here, started using it and found some issues worth mentioning&amp;#58;&lt;br /&gt;&lt;br /&gt;-- I&amp;#39;d like to persist Money type as a string in a custom format, so it&amp;#39;s desirable to know if a given currency code is valid in the system. For this case to work i&amp;#39;ve introduced a Currency.TryParse&amp;#40;..&amp;#41; method with a semantic similar to that of some standard CLR value types.&lt;br /&gt;&lt;br /&gt;-- For UI purpose it&amp;#39;d be cool to have a list of all valid currencies, so i&amp;#39;ve exposed it via static Currency.Currencies property&lt;br /&gt;&lt;br /&gt;-- Presently, there&amp;#39;s no way to know if a given Currency instance represents a valid currency until you try to access any instance property and, possibly, get an InvalidOperationException -- ups, not nice&amp;#33; I&amp;#39;ve made these properties silently return default values if no matching currency was found. So at least the following snippet won&amp;#39;t cause an earthquake&amp;#58; new Currency&amp;#40;&amp;#41;.IsoNumericCode, but just silently return &amp;#34;0&amp;#34;. For the sake of consistency, i&amp;#39;ve also added Currency.Empty static instance.&lt;br /&gt;&lt;br /&gt;-- Finally, just to simplify a bit working with a huge source file, i&amp;#39;ve moved a part of Currency.cs into partial class file.&lt;br /&gt;</description><author>esteewhy</author><pubDate>Fri, 08 May 2009 13:21:37 GMT</pubDate><guid isPermaLink="false">Created Issue: Code (re)usability improvements 20090508012137P</guid></item><item><title>Created Issue: Multiply and divide ignore the Currency</title><link>http://moneytype.codeplex.com/WorkItem/View.aspx?WorkItemId=3437</link><description>operator &amp;#42; and operator &amp;#47; both ignore the Currency of the amount being modified and return a Money for the current culture.  Code should be&lt;br /&gt;&lt;br /&gt;        public static Money operator &amp;#42;&amp;#40;Money left, Decimal right&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            return new Money&amp;#40;&amp;#40;&amp;#40;Decimal&amp;#41;left &amp;#42; right&amp;#41;, left._currency&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;        public static Money operator &amp;#47;&amp;#40;Money left, Decimal right&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            return new Money&amp;#40;&amp;#40;&amp;#40;Decimal&amp;#41;left &amp;#47; right&amp;#41;, left._currency&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;thanks for prividing this project&lt;br /&gt;Paul&lt;br /&gt;</description><author>PaulLinton</author><pubDate>Tue, 24 Mar 2009 00:36:06 GMT</pubDate><guid isPermaLink="false">Created Issue: Multiply and divide ignore the Currency 20090324123606A</guid></item><item><title>Created Issue: Formatting errors</title><link>http://www.codeplex.com/MoneyType/WorkItem/View.aspx?WorkItemId=2388</link><description>Hi,&lt;br /&gt;When reviewing your code I found that no matter what currency is set on the Money object, it gets ignored when calling ToString&amp;#40;&amp;#41;, being always the currency corresponding the current Culture. If it happens to be a culture with &amp;#36;, then the corresponding test is passed.&lt;br /&gt;I tried fixing it myself, passing the current  _currency as the IFormatInfo argument, but then it complains heavily about the code used to create the corresponding cultureInfo as it expect a windows Lcid &amp;#40;not Iso number code&amp;#41;.&lt;br /&gt;&lt;br /&gt;Thanks a lot if you happen to look at it, great code, by the way&lt;br /&gt;</description><author>dgon</author><pubDate>Mon, 29 Sep 2008 19:42:36 GMT</pubDate><guid isPermaLink="false">Created Issue: Formatting errors 20080929074236P</guid></item></channel></rss>