Code: Select all
public int _port
Member of System.Uri
)))
Code: Select all
bool ok=false
try
{
....
ok = true;
}
catch
{
ok = true
...
}
finally
{
if(!ok} throw new exception("unknown error")
}
DESCRIPTION: Refused to display 'https://login.live.com/oauth20_authorize.srf?...' in a frame because it set 'X-Frame-Options' to 'deny'.
Code: Select all
public String param1 { get; set; }
public Model2 param2 { get; set; } = new Model2() { param3 = "1" };
'Unable to create an instance of type 'System.String'. A common cause is that the type does not have a default public constructor.'
Code: Select all
Int32[] ii = new Int32[] { 1, -2,1};
var i = ii.Min();
Code: Select all
var c = new ArrayList();
foreach(object b in c) // there is error too
{
//....
}