|
23 | 23 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
24 | 24 | // |
25 | 25 |
|
26 | | -#if!NO_SYSTEM_DRAWING |
27 | 26 | usingSystem.Drawing; |
28 | | -#endif |
29 | 27 |
|
30 | | -// Disable until we get around to enable + fix any issues. |
31 | | -#nullable disable |
| 28 | +#nullable enable |
32 | 29 |
|
33 | 30 | namespaceFoundation{ |
34 | 31 | publicpartialclassNSValue:NSObject{ |
35 | 32 | #if!COREBUILD |
36 | | -/// <summary>To be added.</summary> |
37 | | -/// <value>To be added.</value> |
38 | | -/// <remarks>To be added.</remarks> |
39 | | -publicstringObjCType{ |
| 33 | +/// <summary>Gets the Objective-C type encoding string for the data contained in the receiver.</summary> |
| 34 | +/// <value>A C string containing the Objective-C type encoding for the data contained in the receiver.</value> |
| 35 | +publicstring?ObjCType{ |
40 | 36 | get{ |
41 | 37 | returnMarshal.PtrToStringAnsi(ObjCTypePtr()); |
42 | 38 | } |
43 | 39 | } |
44 | 40 |
|
45 | | -#if!NO_SYSTEM_DRAWING |
46 | | -/// <param name="rect">To be added.</param> |
47 | | -/// <summary>Creates an NSValue that wraps a RectangleF object.</summary> |
48 | | -/// <returns>To be added.</returns> |
49 | | -/// <remarks>To be added.</remarks> |
| 41 | +/// <summary>Creates an <see cref="NSValue" /> that wraps a <see cref="RectangleF" /> object.</summary> |
| 42 | +/// <param name="rect">The rectangle to wrap.</param> |
| 43 | +/// <returns>A new <see cref="NSValue" /> instance containing the specified rectangle.</returns> |
50 | 44 | publicstaticNSValueFromRectangleF(RectangleFrect) |
51 | 45 | { |
52 | 46 | returnFromCGRect(rect); |
53 | 47 | } |
54 | 48 |
|
55 | | -/// <param name="size">To be added.</param> |
56 | | -/// <summary>Creates an NSValue that wraps a SizeF object.</summary> |
57 | | -/// <returns>To be added.</returns> |
58 | | -/// <remarks>To be added.</remarks> |
| 49 | +/// <summary>Creates an <see cref="NSValue" /> that wraps a <see cref="SizeF" /> object.</summary> |
| 50 | +/// <param name="size">The size to wrap.</param> |
| 51 | +/// <returns>A new <see cref="NSValue" /> instance containing the specified size.</returns> |
59 | 52 | publicstaticNSValueFromSizeF(SizeFsize) |
60 | 53 | { |
61 | 54 | returnFromCGSize(size); |
62 | 55 | } |
63 | 56 |
|
64 | | -/// <param name="point">To be added.</param> |
65 | | -/// <summary>Creates an NSValue that wraps a PointF object.</summary> |
66 | | -/// <returns>To be added.</returns> |
67 | | -/// <remarks>To be added.</remarks> |
| 57 | +/// <summary>Creates an <see cref="NSValue" /> that wraps a <see cref="PointF" /> object.</summary> |
| 58 | +/// <param name="point">The point to wrap.</param> |
| 59 | +/// <returns>A new <see cref="NSValue" /> instance containing the specified point.</returns> |
68 | 60 | publicstaticNSValueFromPointF(PointFpoint) |
69 | 61 | { |
70 | 62 | returnFromCGPoint(point); |
71 | 63 | } |
72 | 64 |
|
73 | | -/// <summary>Returns the RectangleF value wrapped by this NSValue object.</summary> |
74 | | -/// <value>To be added.</value> |
75 | | -/// <remarks>To be added.</remarks> |
| 65 | +/// <summary>Gets the <see cref="RectangleF" /> value wrapped by this <see cref="NSValue" /> object.</summary> |
| 66 | +/// <value>The rectangle value.</value> |
76 | 67 | publicRectangleFRectangleFValue{ |
77 | 68 | get{return(RectangleF)CGRectValue;} |
78 | 69 | } |
79 | 70 |
|
80 | | -/// <summary>Returns the SizeF value wrapped by this NSValue object.</summary> |
81 | | -/// <value> |
82 | | -/// </value> |
83 | | -/// <remarks> |
84 | | -/// </remarks> |
| 71 | +/// <summary>Gets the <see cref="SizeF" /> value wrapped by this <see cref="NSValue" /> object.</summary> |
| 72 | +/// <value>The size value.</value> |
85 | 73 | publicSizeFSizeFValue{ |
86 | 74 | get{return(SizeF)CGSizeValue;} |
87 | 75 | } |
88 | 76 |
|
89 | | -/// <summary>Returns the PointF value wrapped by this NSValue object.</summary> |
90 | | -/// <value>To be added.</value> |
91 | | -/// <remarks>To be added.</remarks> |
| 77 | +/// <summary>Gets the <see cref="PointF" /> value wrapped by this <see cref="NSValue" /> object.</summary> |
| 78 | +/// <value>The point value.</value> |
92 | 79 | publicPointFPointFValue{ |
93 | 80 | get{return(PointF)CGPointValue;} |
94 | 81 | } |
95 | | -#endif |
96 | | - |
97 | 82 | #endif |
98 | 83 | } |
99 | 84 | } |