This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mono3(master)$ TZ='Asia/Hong_Kong' mono/mini/mono --debug mcs/class/lib/net_4_x/csharp.exe | |
Mono C# Shell, type "help;" for help | |
Enter statements below. | |
csharp> var dst = TimeZone.CurrentTimeZone.GetDaylightChanges (2015) | |
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime. | |
Parameter name: t | |
at System.DateTime.op_Addition (DateTime d, TimeSpan t) [0x0003e] in /Users/marcos/dev/mono/mono3/external/referencesource/mscorlib/system/datetime.cs:1263 | |
at System.TimeZoneInfo.GetDaylightChanges (Int32 year) [0x000e5] in /Users/marcos/dev/mono/mono3/mcs/class/corlib/System/TimeZoneInfo.cs:938 | |
at System.CurrentSystemTimeZone.GetDaylightChanges (Int32 year) [0x00000] in /Users/marcos/dev/mono/mono3/mcs/class/corlib/System/TimeZone.cs:195 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Style A: | |
if (...) { | |
} else { | |
if (...) { | |
... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright 2012 Xamarin Inc. (http://www.xamarin.com) | |
// | |
using System; | |
using System.Globalization; | |
using System.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class HttpListenerRequestTest | |
{ | |
[Test] | |
public void HttpRequestInputStreamDispose() | |
{ | |
var uri = "http://localhost:8083/"; | |
var requestContent = "content=request"; | |
HttpListener listener = new HttpListener(); |