You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Runtime.CompilerServices/InlineArrayAttribute.xml
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,16 @@
25
25
</Attributes>
26
26
<Docs>
27
27
<summary>Indicates that the instance's storage is sequentially replicated <seecref="P:System.Runtime.CompilerServices.InlineArrayAttribute.Length" /> times.</summary>
28
-
<remarks>To be added.</remarks>
28
+
<remarks>This attribute can be used to annotate a <seelangword="struct"/> type with a single field. The runtime replicates that field in the actual type layout as many times as is specified.</remarks>
29
+
<example>The following example shows how to declare an inline array type with eight <seelangword="float"/> values.
30
+
<codelang="csharp">
31
+
[InlineArray(8)]
32
+
struct Float8InlineArray
33
+
{
34
+
private float _value;
35
+
}
36
+
</code>
37
+
</example>
29
38
</Docs>
30
39
<Members>
31
40
<MemberMemberName=".ctor">
@@ -44,8 +53,8 @@
44
53
<ParameterName="length"Type="System.Int32" />
45
54
</Parameters>
46
55
<Docs>
47
-
<paramname="length">To be added.</param>
48
-
<summary>To be added.</summary>
56
+
<paramname="length">The number of sequential fields to replicate in the inline array type.</param>
57
+
<summary>Creates a new <seecref="T:System.Runtime.CompilerServices.InlineArrayAttribute" /> instance with the specified length.</summary>
49
58
<remarks>To be added.</remarks>
50
59
</Docs>
51
60
</Member>
@@ -65,8 +74,8 @@
65
74
<ReturnType>System.Int32</ReturnType>
66
75
</ReturnValue>
67
76
<Docs>
68
-
<summary>To be added.</summary>
69
-
<value>To be added.</value>
77
+
<summary>Gets the number of sequential fields to replicate in the inline array type.</summary>
78
+
<value>The number of sequential fields to replicate in the inline array type.</value>
0 commit comments