* PaperSource.cs: Implement RawKind.
Fixes the remaining bits of #507739.
svn path=/trunk/mcs/; revision=137565
+2009-07-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * PaperSource.cs: Implement RawKind.
+ Fixes the remaining bits of #507739.
+
2009-07-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PaperSize.cs: Implement support for RawKind.
public PaperSourceKind Kind{
get {
+ // Exactly at 256 (as opposed to Custom, which is 257 and the max value of PaperSourceKind),
+ // we must return Custom always.
+ if ((int)kind >= 256)
+ return PaperSourceKind.Custom;
+
return this.kind;
}
}
}
#if NET_2_0
- [MonoTODO]
public int RawKind {
get {
- throw new NotImplementedException ();
+ return (int)kind;
}
set {
- throw new NotImplementedException ();
+ kind = (PaperSourceKind)value;
}
}
#endif\r