<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Circles and Crosses</title>
	<atom:link href="http://ox.no/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://ox.no</link>
	<description>Håvard Stranden's website</description>
	<lastBuildDate>Tue, 02 Mar 2010 07:41:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on RSA using BouncyCastle by Craig Martin</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-684</link>
		<dc:creator>Craig Martin</dc:creator>
		<pubDate>Tue, 02 Mar 2010 07:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-684</guid>
		<description>&lt;p&gt;Hi There,&lt;/p&gt;

&lt;p&gt;This doesn&#039;t exactly apply to this post, but I thought I would ask it here anyway as there is very little on using BouncyCastle in C# (as has been noted by previous posts here!).&lt;/p&gt;

&lt;p&gt;Is there anyway to create an AsymmetricKeyParameter using a previously generated private key? I am generating a key pair, storing the private key in an encrypted form and then when it is time to create a P12 for the end user to retrieve their certificate, I am decrypting the previously stored private key, but now have no idea how to actually make it into an AsymmetricKeyParameter so as to create the P12 using BouncyCastle.&lt;/p&gt;

&lt;p&gt;Is what I am trying to do even possible?&lt;/p&gt;

&lt;p&gt;Any help is greatly appreciated.&lt;/p&gt;

&lt;p&gt;Cheers,
Craig Martin&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi There,</p>

<p>This doesn&#8217;t exactly apply to this post, but I thought I would ask it here anyway as there is very little on using BouncyCastle in C# (as has been noted by previous posts here!).</p>

<p>Is there anyway to create an AsymmetricKeyParameter using a previously generated private key? I am generating a key pair, storing the private key in an encrypted form and then when it is time to create a P12 for the end user to retrieve their certificate, I am decrypting the previously stored private key, but now have no idea how to actually make it into an AsymmetricKeyParameter so as to create the P12 using BouncyCastle.</p>

<p>Is what I am trying to do even possible?</p>

<p>Any help is greatly appreciated.</p>

<p>Cheers,
Craig Martin</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension methods for copying or cloning objects by Håvard</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-678</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Fri, 19 Feb 2010 13:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-678</guid>
		<description>&lt;p&gt;Rachel: Sadly, OX.Copyable won&#039;t easily work with Silverlight. There are several issues that need to be adressed before a Silverlight version can be built. I hope to be able to research the possibilities for Silverlight support in the near future. Keep watching!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rachel: Sadly, OX.Copyable won&#8217;t easily work with Silverlight. There are several issues that need to be adressed before a Silverlight version can be built. I hope to be able to research the possibilities for Silverlight support in the near future. Keep watching!</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension methods for copying or cloning objects by Rachel T</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-677</link>
		<dc:creator>Rachel T</dc:creator>
		<pubDate>Fri, 19 Feb 2010 13:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-677</guid>
		<description>&lt;p&gt;Tried the suggestion (yes, the files were &lt;em&gt;linked&lt;/em&gt; into a new SL class lib proj) for making this work in Silverlight 3 and still throws the same error when trying to compile the wrapper project that I created. Has anyone besides Boris been able to make this work for Silverlight 3?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Tried the suggestion (yes, the files were <em>linked</em> into a new SL class lib proj) for making this work in Silverlight 3 and still throws the same error when trying to compile the wrapper project that I created. Has anyone besides Boris been able to make this work for Silverlight 3?</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension methods for copying or cloning objects by Boris Modylevsky</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-674</link>
		<dc:creator>Boris Modylevsky</dc:creator>
		<pubDate>Wed, 17 Feb 2010 09:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-674</guid>
		<description>&lt;p&gt;Håvard, thanks for the quick reply. Copyable framework downloaded from GitHub does contain support for inherited properties and it works well. BUT, I was trying to use this framework in Silverlight and it fails on build with the following error:&lt;/p&gt;

&lt;p&gt;&#039;System.AssemblyLoadEventArgs&#039; is inaccessible due to its protection level. File: ObjectExtensions.cs Line : 24&lt;/p&gt;

&lt;p&gt;Here are my steps to create a Silverlight compatible Copyable framework:
1. Create a new Silverlight Class Library project, named OX.Copyable.Silverlight
2. Add existing files as links from OX.Copyable project to the new created one. Make sure you&#039;re adding them as links.
3. Build&lt;/p&gt;

&lt;p&gt;Thanks in advance!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Håvard, thanks for the quick reply. Copyable framework downloaded from GitHub does contain support for inherited properties and it works well. BUT, I was trying to use this framework in Silverlight and it fails on build with the following error:</p>

<p>&#8216;System.AssemblyLoadEventArgs&#8217; is inaccessible due to its protection level. File: ObjectExtensions.cs Line : 24</p>

<p>Here are my steps to create a Silverlight compatible Copyable framework:
1. Create a new Silverlight Class Library project, named OX.Copyable.Silverlight
2. Add existing files as links from OX.Copyable project to the new created one. Make sure you&#8217;re adding them as links.
3. Build</p>

<p>Thanks in advance!</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension methods for copying or cloning objects by Håvard</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-671</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Tue, 16 Feb 2010 13:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-671</guid>
		<description>&lt;p&gt;Boris: Thanks for sharing! The issue with inherited properties has been reported earlier, and is fixed in the latest version of &lt;a href=&quot;http://github.com/havard/copyable&quot; rel=&quot;nofollow&quot;&gt;Copyable on GitHub&lt;/a&gt; . You can get a copy of the source there.&lt;/p&gt;

&lt;p&gt;As for the issue of exceptions, I&#039;ll see if I can find time to lessen the exception throwing for added debugging convenience. Until then, rest assured that they are handled properly. :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Boris: Thanks for sharing! The issue with inherited properties has been reported earlier, and is fixed in the latest version of <a href="http://github.com/havard/copyable" rel="nofollow">Copyable on GitHub</a> . You can get a copy of the source there.</p>

<p>As for the issue of exceptions, I&#8217;ll see if I can find time to lessen the exception throwing for added debugging convenience. Until then, rest assured that they are handled properly. <img src='http://ox.no/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension methods for copying or cloning objects by Boris Modylevsky</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-670</link>
		<dc:creator>Boris Modylevsky</dc:creator>
		<pubDate>Tue, 16 Feb 2010 13:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-670</guid>
		<description>&lt;p&gt;Thanks for writing such a framework!&lt;/p&gt;

&lt;p&gt;I managed easily incorporate it into my code due to the use of extensions. But I had two issues with this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;While using in Debug, it throws, catches and ignores exceptions in GetInstanceProviders method. It would be nice to remove throwing in terms of performance and convenience in Debug.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Copy() method does copy objects properties, but does not copies inherited properties. Take a look at this piece of code:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;public class Mammal
{
  public Guid Id { get; set; }
}&lt;/p&gt;

&lt;p&gt;public class Human : Mammal 
{
 // The rest of Human class as defined in Human.cs
}&lt;/p&gt;

&lt;p&gt;// Add the following line
// in TestCloneHumanInOtherAssembly  test and it fails
Assert.AreEqual(father.Id, sensation.Id);&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for writing such a framework!</p>

<p>I managed easily incorporate it into my code due to the use of extensions. But I had two issues with this:</p>

<ol>
<li><p>While using in Debug, it throws, catches and ignores exceptions in GetInstanceProviders method. It would be nice to remove throwing in terms of performance and convenience in Debug.</p></li>
<li><p>Copy() method does copy objects properties, but does not copies inherited properties. Take a look at this piece of code:</p></li>
</ol>

<p>public class Mammal
{
  public Guid Id { get; set; }
}</p>

<p>public class Human : Mammal 
{
 // The rest of Human class as defined in Human.cs
}</p>

<p>// Add the following line
// in TestCloneHumanInOtherAssembly  test and it fails
Assert.AreEqual(father.Id, sensation.Id);</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension methods for copying or cloning objects by Håvard</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-668</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Thu, 11 Feb 2010 08:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-668</guid>
		<description>&lt;p&gt;Ben: I am going to need a source code copy that reproduces this problem. You can send me a copy at havard DOT stranden ATT gmail DOT com.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ben: I am going to need a source code copy that reproduces this problem. You can send me a copy at havard DOT stranden ATT gmail DOT com.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension methods for copying or cloning objects by Ben</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-667</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 11 Feb 2010 05:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-667</guid>
		<description>&lt;p&gt;Error in Cloning one of my object&lt;/p&gt;

&lt;p&gt;Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&lt;/p&gt;

&lt;p&gt;Source Error:&lt;/p&gt;

&lt;p&gt;Line 57:         private static IEnumerable GetInstanceProviders(Assembly assembly)
Line 58:         {
Line 59:             foreach (Type t in assembly.GetTypes())
Line 60:             {
Line 61:                 if (typeof(IInstanceProvider).IsAssignableFrom(t))&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Error in Cloning one of my object</p>

<p>Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.</p>

<p>Source Error:</p>

<p>Line 57:         private static IEnumerable GetInstanceProviders(Assembly assembly)
Line 58:         {
Line 59:             foreach (Type t in assembly.GetTypes())
Line 60:             {
Line 61:                 if (typeof(IInstanceProvider).IsAssignableFrom(t))</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on AJAST &#8211; Cross-domain REST calls using JSON injection by IStvan</title>
		<link>http://ox.no/posts/ajast-cross-domain-rest-calls-using-json-injection/comment-page-1#comment-666</link>
		<dc:creator>IStvan</dc:creator>
		<pubDate>Wed, 10 Feb 2010 13:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/ajast-cross-domain-rest-calls-using-javascript-injection#comment-666</guid>
		<description>&lt;p&gt;Great little code. 
Is it possible to change the request headers before the call? I&#039;d like to prevent caching. I was thinking to use cache-control no-cache as request header. Please help me how to inject that.&lt;/p&gt;

&lt;p&gt;thanks,
--IStvan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great little code. 
Is it possible to change the request headers before the call? I&#8217;d like to prevent caching. I was thinking to use cache-control no-cache as request header. Please help me how to inject that.</p>

<p>thanks,
&#8211;IStvan</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on AJAST &#8211; Cross-domain REST calls using JSON injection by Håvard</title>
		<link>http://ox.no/posts/ajast-cross-domain-rest-calls-using-json-injection/comment-page-1#comment-665</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Wed, 10 Feb 2010 10:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/ajast-cross-domain-rest-calls-using-javascript-injection#comment-665</guid>
		<description>&lt;p&gt;Ali: This is weird. I suspect your issue is something else. Javascript always runs in a single thread (although the XHRs themselves are run asynchronously), so synchronization is not an issue.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ali: This is weird. I suspect your issue is something else. Javascript always runs in a single thread (although the XHRs themselves are run asynchronously), so synchronization is not an issue.</p>]]></content:encoded>
	</item>
</channel>
</rss>
