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.ComponentModel/DefaultValueAttribute.xml
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -65,14 +65,13 @@
65
65
<formattype="text/markdown"><![CDATA[
66
66
67
67
## Remarks
68
-
You can create a <xref:System.ComponentModel.DefaultValueAttribute> with any value. A member's default value is typically its initial value. A visual designer can use the default value to reset the member's value. Code generators can use the default values also to determine whether code should be generated for the member.
69
68
70
-
> [!NOTE]
71
-
> A <xref:System.ComponentModel.DefaultValueAttribute> will not cause a member to be automatically initialized with the attribute's value. You must set the initial value in your code.
72
-
73
-
For more information, see [Attributes](/dotnet/standard/attributes/).
69
+
You can create a <xref:System.ComponentModel.DefaultValueAttribute> with any value. A member's default value is typically its initial value. A visual designer can use the default value to reset the member's value. Code generators can use the default values also to determine whether code should be generated for the member.
74
70
71
+
> [!NOTE]
72
+
> A <xref:System.ComponentModel.DefaultValueAttribute> will not cause a member to be automatically initialized with the attribute's value. You must set the initial value in your code.
75
73
74
+
For more information, see [Attributes](/dotnet/standard/attributes/).
76
75
77
76
## Examples
78
77
The following example sets the default value of `MyProperty` to `false`.
0 commit comments