<?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/"
	>

<channel>
	<title>Der Lanwirt &#187; Sharp</title>
	<atom:link href="http://www.lanwirt.de/category/sharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lanwirt.de</link>
	<description>manchmal auch wanwirt oder sanwirt</description>
	<lastBuildDate>Thu, 15 Jul 2010 12:53:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>C# &#8211; ungÃ¼ltiges SSL-Zertifikat ignorieren</title>
		<link>http://www.lanwirt.de/2007/12/07/c-ungultiges-ssl-zertifikat-ignorieren/</link>
		<comments>http://www.lanwirt.de/2007/12/07/c-ungultiges-ssl-zertifikat-ignorieren/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 14:58:02 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[Sec]]></category>
		<category><![CDATA[Sharp]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[tls]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2007/12/07/c-ungultiges-ssl-zertifikat-ignorieren/</guid>
		<description><![CDATA[Um mal schnell eine SSL/TLS-DatenÃ¼bertragung zu testen, ist es praktisch, wenn man ein ungÃ¼ltiges SSL-Zertifikat auch mal ignorieren kann. Mit diesem Code hier geht das: using System.Net; ... ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback (IgnoreCertificateErrorHandler); ... private bool IgnoreCertificateErrorHandler (object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors) { return true; } ... Quelle: http://en.csharp-online.net/Invalid_HTTPS_certificate]]></description>
			<content:encoded><![CDATA[<p>Um mal schnell eine SSL/TLS-DatenÃ¼bertragung zu testen, ist es praktisch, wenn man ein ungÃ¼ltiges SSL-Zertifikat auch mal ignorieren kann. Mit diesem Code hier geht das:</p>
<p><code><br />
using System.Net;<br />
...</p>
<p>   ServicePointManager.ServerCertificateValidationCallback =<br />
      new RemoteCertificateValidationCallback<br />
         (IgnoreCertificateErrorHandler);<br />
...<br />
private bool IgnoreCertificateErrorHandler<br />
   (object sender,<br />
   System.Security.Cryptography.X509Certificates.X509Certificate certificate,<br />
   System.Security.Cryptography.X509Certificates.X509Chain chain,<br />
   System.Net.Security.SslPolicyErrors sslPolicyErrors)<br />
{</p>
<p>   return true;<br />
}<br />
...<br />
</code></p>
<p>Quelle:<br />
<a href="http://en.csharp-online.net/Invalid_HTTPS_certificate" onclick="javascript:pageTracker._trackPageview ('/outbound/en.csharp-online.net');">http://en.csharp-online.net/Invalid_HTTPS_certificate</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2007/12/07/c-ungultiges-ssl-zertifikat-ignorieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS.NET 2005 Debugger: &#8220;Step Into&#8221; weg</title>
		<link>http://www.lanwirt.de/2007/05/09/vsnet-2005-debugger-step-into-weg/</link>
		<comments>http://www.lanwirt.de/2007/05/09/vsnet-2005-debugger-step-into-weg/#comments</comments>
		<pubDate>Wed, 09 May 2007 08:31:49 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Sharp]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2007/05/09/vsnet-2005-debugger-step-into-weg/</guid>
		<description><![CDATA[Heute hat mir die Step Into &#8211; Funktion im Debugger so sehr gefehlt, dass ich danach gegoogelt habe und siehe da, es gibt eine LÃ¶sung. Man lÃ¶sche einfach sein Profil in VS.NET 2005, warum auch immer das nÃ¶tig ist &#8230; 1) Click the Tools->Import and Export Settings menu item 2) Choose Reset all Settings 3) [...]]]></description>
			<content:encoded><![CDATA[<p>Heute hat mir die Step Into &#8211; Funktion im Debugger so sehr gefehlt, dass ich danach gegoogelt habe und siehe da, es gibt eine LÃ¶sung. Man lÃ¶sche einfach sein Profil in VS.NET 2005, warum auch immer das nÃ¶tig ist &#8230;</p>
<blockquote><p>1)       Click the Tools->Import and Export Settings menu item<br />
2)       Choose Reset all Settings<br />
3)       Donâ€™t save your settings<br />
4)       Pick a new profile
</p></blockquote>
<p>Quelle:<br />
<a href="http://aspadvice.com/blogs/plitwin/archive/2005/11/12/13767.aspx" onclick="javascript:pageTracker._trackPageview ('/outbound/aspadvice.com');">http://aspadvice.com/blogs/plitwin/archive/2005/11/12/13767.aspx</a></p>
<p>FÃ¼r die Suche: Visual Studio</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2007/05/09/vsnet-2005-debugger-step-into-weg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fenster komplett verstecken</title>
		<link>http://www.lanwirt.de/2007/05/04/fenster-komplett-verstecken/</link>
		<comments>http://www.lanwirt.de/2007/05/04/fenster-komplett-verstecken/#comments</comments>
		<pubDate>Fri, 04 May 2007 14:41:07 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Sharp]]></category>
		<category><![CDATA[Win]]></category>
		<category><![CDATA[Winforms]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2007/05/04/fenster-komplett-verstecken/</guid>
		<description><![CDATA[Ich musste ein Fenster verstecken, sodass es nicht im Alt-Tab-MenÃ¼ zu sehen war. Die LÃ¶sung war folgende: Form.ShowInTaskbar auf false setzen Form.FormBorderStyle auf FixedToolWindow oder SizableToolWindow setzen Quelle: http://episteme.arstechnica.com/eve/ubb.x/a/tpc/f/6330927813/m/190001652731/r/953007043731]]></description>
			<content:encoded><![CDATA[<p>Ich musste ein Fenster verstecken, sodass es nicht im Alt-Tab-MenÃ¼ zu sehen war.</p>
<p>Die LÃ¶sung war folgende:</p>
<ul>
<li>Form.ShowInTaskbar auf false setzen</li>
<li>Form.FormBorderStyle auf FixedToolWindow oder SizableToolWindow setzen</li>
</ul>
<p>Quelle:<br />
<a href="http://episteme.arstechnica.com/eve/ubb.x/a/tpc/f/6330927813/m/190001652731/r/953007043731" onclick="javascript:pageTracker._trackPageview ('/outbound/episteme.arstechnica.com');">http://episteme.arstechnica.com/eve/ubb.x/a/tpc/f/6330927813/m/190001652731/r/953007043731</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2007/05/04/fenster-komplett-verstecken/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DateTime und ParseExact</title>
		<link>http://www.lanwirt.de/2007/03/27/datetime-und-parseexact/</link>
		<comments>http://www.lanwirt.de/2007/03/27/datetime-und-parseexact/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 08:15:51 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Sharp]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2007/03/27/datetime-und-parseexact/</guid>
		<description><![CDATA[Es kommt ja manchmal vor, dass man ein bestimmt formatiertes Datum in ein DateTime-Objekt verwandeln will. Im aktuellen Fall war es das Format 2007-03-27T18:33:21.123 DafÃ¼r gibt es DateTime.ParseExact und so hat das bei mir funktioniert: DateTime meinDatum = DateTime.ParseExact(meinString, "yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture); In einigen Quellen war zu lesen, man mÃ¼sse Doppelpunkte und andere Zeichen Quoten, das [...]]]></description>
			<content:encoded><![CDATA[<p>Es kommt ja manchmal vor, dass man ein bestimmt formatiertes Datum in ein DateTime-Objekt verwandeln will.<br />
Im aktuellen Fall war es das Format</p>
<p><code>2007-03-27T18:33:21.123</code></p>
<p>DafÃ¼r gibt es DateTime.ParseExact und so hat das bei mir funktioniert:</p>
<p><code>DateTime meinDatum = DateTime.ParseExact(meinString, "yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture);</code></p>
<p>In einigen Quellen war zu lesen, man mÃ¼sse Doppelpunkte und andere Zeichen Quoten, das war jedoch nicht nÃ¶tig. Funktioniert hat es aber erst, nachdem ich CultureInfo.InvariantCulture als zweiten Parameter angegeben habe.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2007/03/27/datetime-und-parseexact/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Transparentes 1&#215;1-Pixel-GIF ausgeben</title>
		<link>http://www.lanwirt.de/2007/01/11/transparentes-1x1-pixel-gif/</link>
		<comments>http://www.lanwirt.de/2007/01/11/transparentes-1x1-pixel-gif/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 08:58:19 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Sharp]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2007/01/11/transparentes-1x1-pixel-gif/</guid>
		<description><![CDATA[Response.Clear(); Response.ContentType = â€œimage/pngâ€?; Response.BinaryWrite(new byte[] {0&#215;47, 0&#215;49, 0&#215;46, 0&#215;38, 0&#215;39, 0&#215;61, 0&#215;01, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;80, 0&#215;00, 0&#215;00, 0xFF, 0xFF, 0xFF, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;21, 0xF9, 0&#215;04, 0&#215;01, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;00, 0x2C, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;00, 0&#215;02, 0&#215;02, 0&#215;44, 0&#215;01, 0&#215;00, 0x3B}); Response.End();]]></description>
			<content:encoded><![CDATA[<p>Response.Clear();<br />
Response.ContentType = â€œimage/pngâ€?;<br />
Response.BinaryWrite(new byte[] {0&#215;47, 0&#215;49, 0&#215;46, 0&#215;38, 0&#215;39, 0&#215;61, 0&#215;01, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;80, 0&#215;00, 0&#215;00, 0xFF, 0xFF, 0xFF, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;21, 0xF9, 0&#215;04, 0&#215;01, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;00, 0x2C, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;00, 0&#215;02, 0&#215;02, 0&#215;44, 0&#215;01, 0&#215;00, 0x3B});<br />
Response.End();</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2007/01/11/transparentes-1x1-pixel-gif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transparentes 1&#215;1-Pixel-PNG ausgeben</title>
		<link>http://www.lanwirt.de/2007/01/11/transparentes-1x1px-png-ausgeben/</link>
		<comments>http://www.lanwirt.de/2007/01/11/transparentes-1x1px-png-ausgeben/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 08:10:22 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Sharp]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2007/01/11/transparentes-1x1px-png-ausgeben/</guid>
		<description><![CDATA[Response.Clear(); Response.ContentType = &#8220;image/png&#8221;; Response.BinaryWrite(new byte[] { 0&#215;89, 0&#215;50, 0x4E, 0&#215;47, 0x0D, 0x0A, 0x1A, 0x0A, 0&#215;00, 0&#215;00, 0&#215;00, 0x0D, 0&#215;49, 0&#215;48, 0&#215;44, 0&#215;52, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;01, 0&#215;08, 0&#215;06, 0&#215;00, 0&#215;00, 0&#215;00, 0x1F, 0&#215;15, 0xC4, 0&#215;89, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;04, 0&#215;67, 0&#215;41, 0x4d, 0&#215;41, 0&#215;00, 0&#215;00, 0xb1, 0x8e, 0x7c, 0xfb, 0&#215;51, [...]]]></description>
			<content:encoded><![CDATA[<p>Response.Clear();<br />
Response.ContentType = &#8220;image/png&#8221;;<br />
Response.BinaryWrite(new byte[] { 0&#215;89, 0&#215;50, 0x4E, 0&#215;47, 0x0D, 0x0A, 0x1A, 0x0A, 0&#215;00, 0&#215;00, 0&#215;00, 0x0D, 0&#215;49, 0&#215;48, 0&#215;44, 0&#215;52, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;01, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;01, 0&#215;08, 0&#215;06, 0&#215;00, 0&#215;00, 0&#215;00, 0x1F, 0&#215;15, 0xC4, 0&#215;89, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;04, 0&#215;67, 0&#215;41, 0x4d, 0&#215;41, 0&#215;00, 0&#215;00, 0xb1, 0x8e, 0x7c, 0xfb, 0&#215;51, 0&#215;93, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;20, 0&#215;63, 0&#215;48, 0&#215;52, 0x4d, 0&#215;00, 0&#215;00, 0x7a, 0&#215;25, 0&#215;00, 0&#215;00, 0&#215;80, 0&#215;83, 0&#215;00, 0&#215;00, 0xf9, 0xff, 0&#215;00, 0&#215;00, 0&#215;80, 0xe8, 0&#215;00, 0&#215;00, 0&#215;75, 0&#215;30, 0&#215;00, 0&#215;00, 0xea, 0&#215;60, 0&#215;00, 0&#215;00, 0x3a, 0&#215;97, 0&#215;00, 0&#215;00, 0&#215;17, 0x6f, 0&#215;97, 0xa9, 0&#215;99, 0xd4, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;10, 0&#215;49, 0&#215;44, 0&#215;41, 0&#215;54, 0&#215;78, 0x9c, 0&#215;62, 0xf8, 0xff, 0xff, 0x3f, 0&#215;03, 0&#215;40, 0&#215;80, 0&#215;01, 0&#215;00, 0&#215;08, 0xfc, 0&#215;02, 0xfe, 0&#215;33, 0xa3, 0xe2, 0&#215;99, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;00, 0&#215;49, 0&#215;45, 0x4e, 0&#215;44, 0xae, 0&#215;42, 0&#215;60, 0&#215;82});<br />
Response.End();</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2007/01/11/transparentes-1x1px-png-ausgeben/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET 2.0 &#8211; Decompiler</title>
		<link>http://www.lanwirt.de/2006/06/14/net-20-decompiler/</link>
		<comments>http://www.lanwirt.de/2006/06/14/net-20-decompiler/#comments</comments>
		<pubDate>Wed, 14 Jun 2006 11:52:23 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Know]]></category>
		<category><![CDATA[MS]]></category>
		<category><![CDATA[Sharp]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2006/06/14/net-20-decompiler/</guid>
		<description><![CDATA[Auf der Suche nach einem kostenlosen Decompiler fÃ¼r .NET 2.0 habe ich das Tool &#8220;Reflector&#8221; entdeckt. Es hat genau getan, was ich wollte und musste noch nicht einmal installiert werden. Ich konnte einfach die .exe-Datei auf den Desktop legen und doppelklicken. Hier ist der Link: http://www.aisto.com/roeder/dotnet/]]></description>
			<content:encoded><![CDATA[<p>Auf der Suche nach einem kostenlosen Decompiler fÃ¼r .NET 2.0 habe ich das Tool &#8220;Reflector&#8221; entdeckt. Es hat genau getan, was ich wollte und musste noch nicht einmal installiert werden. Ich konnte einfach die .exe-Datei auf den Desktop legen und doppelklicken.</p>
<p>Hier ist der Link:</p>
<p><a href="http://www.aisto.com/roeder/dotnet/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.aisto.com');">http://www.aisto.com/roeder/dotnet/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2006/06/14/net-20-decompiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Noch etwas zum Page Lifecycle in ASP.NET</title>
		<link>http://www.lanwirt.de/2006/02/27/noch-etwas-zum-page-lifecycle-in-aspnet/</link>
		<comments>http://www.lanwirt.de/2006/02/27/noch-etwas-zum-page-lifecycle-in-aspnet/#comments</comments>
		<pubDate>Mon, 27 Feb 2006 18:52:30 +0000</pubDate>
		<dc:creator>Markus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Know]]></category>
		<category><![CDATA[MS]]></category>
		<category><![CDATA[Sharp]]></category>

		<guid isPermaLink="false">http://markus.renschler.net/2006/02/27/noch-etwas-zum-page-lifecycle-in-aspnet/</guid>
		<description><![CDATA[Mir fiel vor kurzem auf, dass der Load-Event einer ASP.NET-Seite im Postback-Fall vor dem Abarbeiten der Events der Controls (z.B. Button.Click) ausgefÃ¼hrt wird. Demzufolge eignet sich Page.Load nicht immer dazu, die Seite zu initialisieren, da unter UmstÃ¤nden bestimmte Werte bestimmter Membervariablen noch garnicht geÃ¤ndert sind. Ich habe daraufhin einen Blick auf den Lifecycle der Page [...]]]></description>
			<content:encoded><![CDATA[<p>Mir fiel vor kurzem auf, dass der Load-Event einer ASP.NET-Seite im Postback-Fall vor dem Abarbeiten der Events der Controls (z.B. Button.Click) ausgefÃ¼hrt wird. Demzufolge eignet sich Page.Load nicht immer dazu, die Seite zu initialisieren, da unter UmstÃ¤nden bestimmte Werte bestimmter Membervariablen noch garnicht geÃ¤ndert sind. Ich habe daraufhin einen Blick auf den Lifecycle der Page geworfen und entdeckt, dass der PreRender-Event der Seite viel besser geeignet ist, die Seite zu initialisieren, da zu diesem Zeitpunkt alle anderen Events abgearbeitet sind. Ich habe daraufhin den Event mit einer eigenen Menthode (analog zu Page_Load) registriert. Wenn man nun z.B. einen Button klickt, reicht es, im Eventhandler der Buttons bestimmte Werte zu verÃ¤ndern. Der PreRender-Event der Seite Ã¼berimmt dann die Ausgabe im UI.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lanwirt.de/2006/02/27/noch-etwas-zum-page-lifecycle-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
