projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Changed UploadStringAsync to handle UploadString encapsulated exceptions.
[mono.git]
/
mcs
/
tests
/
test-833.cs
1
using System;
2
3
class MainClass
4
{
5
public struct DC
6
{
7
private readonly Guid m_Id;
8
9
public DC (Guid Id)
10
{
11
m_Id = Id;
12
}
13
14
public Guid Id
15
{
16
get { return m_Id; }
17
}
18
19
20
}
21
22
public static int Main ()
23
{
24
Guid Id = Guid.NewGuid ();
25
DC dc = new DC (Id);
26
Console.WriteLine ("id: {0} default: {1}", Id, default (Guid));
27
if (dc.Id.Equals (default (Guid)))
28
return 1;
29
30
return 0;
31
}
32
}
33