2 using System
.Collections
.Generic
;
11 static void Main(string[] args
)
13 IntPtr pt
= IntPtr
.Zero
;
17 /* CGRect rect = new CGRect();
18 rect.origin = new CGPoint();
19 rect.size = new CGSize();
20 rect.size.height = 480;
21 rect.size.width = 640;
23 pt = CGContextRef.CGPDFContextCreateWithURL("/Users/dotnetfireball/py.pdf",
25 CFStringRef rs
= new CFStringRef("hello");
26 // rs = (CFStringRef)rs.Clone();
29 Console
.WriteLine(pt
.ToString());
31 string s
= rs
.ToString();
32 if(!string.IsNullOrEmpty(s
))
33 Console
.WriteLine("S:" + s
);
35 Console
.WriteLine("La stringa e' nulla!");
39 File
.AppendAllText("/Users/dotnetfireball/out.txt", ex
.ToString());
42 File
.AppendAllText("/Users/dotnetfireball/out.txt", string.Format("Pointer {0}", pt
));