Skip to content

Commit c5faff8

Browse files
WilliamAntonRohmBillWagner
authored andcommitted
updating for Try .NET (#3490)
1 parent ced196e commit c5faff8

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

xml/System/DateTime.xml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,15 @@ The behavior of the .NET Framework and COM means that if your application round-
498498
</AssemblyInfo>
499499
<Docs>
500500
<summary>Initializes a new instance of the <see cref="T:System.DateTime" /> structure.</summary>
501+
<remarks>
502+
<format type="text/markdown"><![CDATA[
503+
504+
## Remarks
505+
506+
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
507+
508+
]]></format>
509+
</remarks>
501510
</Docs>
502511
</MemberGroup>
503512
<Member MemberName=".ctor">
@@ -660,7 +669,7 @@ The behavior of the .NET Framework and COM means that if your application round-
660669
## Examples
661670
The following example uses the <xref:System.DateTime.%23ctor%28System.Int32%2CSystem.Int32%2CSystem.Int32%29> constructor to instantiate a <xref:System.DateTime> value. The example also illustrates that this overload creates a <xref:System.DateTime> value whose time component equals midnight (or 0:00).
662671

663-
[!code-csharp[System.DateTime.Constructor#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#1)]
672+
[!code-csharp-interactive[System.DateTime.Constructor#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#1)]
664673
[!code-vb[System.DateTime.Constructor#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.constructor/vb/ctorexample1.vb#1)]
665674

666675
]]></format>
@@ -811,7 +820,7 @@ The behavior of the .NET Framework and COM means that if your application round-
811820
## Examples
812821
The following example uses the <xref:System.DateTime.%23ctor%2A> constructor to instantiate a <xref:System.DateTime> value.
813822

814-
[!code-csharp[System.DateTime.Constructor#3](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#3)]
823+
[!code-csharp-interactive[System.DateTime.Constructor#3](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#3)]
815824
[!code-vb[System.DateTime.Constructor#3](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.constructor/vb/ctorexample1.vb#3)]
816825

817826
]]></format>
@@ -899,7 +908,7 @@ The behavior of the .NET Framework and COM means that if your application round-
899908
## Examples
900909
The following example uses the <xref:System.DateTime.%23ctor%28System.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.DateTimeKind%29> constructor to instantiate a <xref:System.DateTime> value.
901910

902-
[!code-csharp[System.DateTime.Constructor#7](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#7)]
911+
[!code-csharp-interactive[System.DateTime.Constructor#7](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#7)]
903912
[!code-vb[System.DateTime.Constructor#7](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.constructor/vb/ctorexample1.vb#7)]
904913

905914
]]></format>
@@ -1084,7 +1093,7 @@ The behavior of the .NET Framework and COM means that if your application round-
10841093
## Examples
10851094
The following example uses the <xref:System.DateTime.%23ctor%28System.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%29> constructor to instantiate a <xref:System.DateTime> value.
10861095

1087-
[!code-csharp[System.DateTime.Constructor#5](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#5)]
1096+
[!code-csharp-interactive[System.DateTime.Constructor#5](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#5)]
10881097
[!code-vb[System.DateTime.Constructor#5](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.constructor/vb/ctorexample1.vb#5)]
10891098

10901099
]]></format>
@@ -1179,7 +1188,7 @@ The behavior of the .NET Framework and COM means that if your application round-
11791188
## Examples
11801189
The following example uses the <xref:System.DateTime.%23ctor%28System.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.Int32%2CSystem.DateTimeKind%29> constructor to instantiate a <xref:System.DateTime> value.
11811190

1182-
[!code-csharp[System.DateTime.Constructor#8](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#8)]
1191+
[!code-csharp-interactive[System.DateTime.Constructor#8](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.constructor/cs/ctorexample1.cs#8)]
11831192
[!code-vb[System.DateTime.Constructor#8](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.constructor/vb/ctorexample1.vb#8)]
11841193

11851194
]]></format>
@@ -2054,10 +2063,13 @@ The behavior of the .NET Framework and COM means that if your application round-
20542063

20552064

20562065

2057-
## Examples
2066+
## Examples
2067+
2068+
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
2069+
20582070
The following example demonstrates the <xref:System.DateTime.Compare%2A> method.
20592071

2060-
[!code-csharp[System.DateTime.Compare#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.compare/cs/compare1.cs#1)]
2072+
[!code-csharp-interactive[System.DateTime.Compare#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.compare/cs/compare1.cs#1)]
20612073
[!code-vb[System.DateTime.Compare#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.compare/vb/compare1.vb#1)]
20622074

20632075
]]></format>
@@ -6830,9 +6842,12 @@ The following example demonstrates the <xref:System.DateTime.Parse%28System.Stri
68306842

68316843

68326844
## Examples
6845+
6846+
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
6847+
68336848
The following example uses the <xref:System.DateTime.Ticks%2A> property to display the number of ticks that have elapsed since the beginning of the twenty-first century and to instantiate a <xref:System.TimeSpan> object. The <xref:System.TimeSpan> object is then used to display the elapsed time using several other time intervals.
68346849

6835-
[!code-csharp[System.DateTime.Ticks#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Ticks/cs/Ticks.cs#1)]
6850+
[!code-csharp-interactive[System.DateTime.Ticks#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Ticks/cs/Ticks.cs#1)]
68366851
[!code-vb[System.DateTime.Ticks#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.DateTime.Ticks/vb/Ticks.vb#1)]
68376852

68386853
]]></format>

0 commit comments

Comments
 (0)