MSDN文章中的遗留代码示例? [英] Legacy Code Examples in MSDN articles?
本文介绍了MSDN文章中的遗留代码示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,是否有官方原因,MSDN现在正在标记示例"旧版代码示例"? 什么符合"旧版代码"的定义?
https://msdn.microsoft.com/en-us/library /system.datetime.day%28v=vs.110%29.aspx
例如,
'旧版代码示例
'以下示例演示了Day属性。
'C#C ++ VB
Dim moment As New System.DateTime(1999,1,13,3,57,31,11)
'年份获得1999年。
Dim year As Integer = moment.Year
'月份获得1(1月)。
Dim month As Integer = moment.Month
'Day得到13.
Dim day As Integer = moment.Day
'小时得3。
Dim hour As Integer = moment.Hour
'Minute得57.
Dim minute As Integer = moment.Minute
'秒得32。
Dim second As Integer = moment.Second
'Millisecond得到11.
Dim millisecond As Integer = moment.Millisecond
解决方案
大多数MSDN文档都有版本控制,如下所示。遗产没有页面。
Hello, Is there an official reason that MSDN is now labeling the examples "Legacy Code Examples"? What fits the definition for "Legacy Code"?
https://msdn.microsoft.com/en-us/library/system.datetime.day%28v=vs.110%29.aspx
For example,
'Legacy Code Example 'The following example demonstrates the Day property. 'C#C++VB Dim moment As New System.DateTime(1999, 1, 13, 3, 57, 32, 11) ' Year gets 1999. Dim year As Integer = moment.Year ' Month gets 1 (January). Dim month As Integer = moment.Month ' Day gets 13. Dim day As Integer = moment.Day ' Hour gets 3. Dim hour As Integer = moment.Hour ' Minute gets 57. Dim minute As Integer = moment.Minute ' Second gets 32. Dim second As Integer = moment.Second ' Millisecond gets 11. Dim millisecond As Integer = moment.Millisecond
解决方案
The majority of MSDN documentation has versioning as shown below. There are no pages for legacy.
这篇关于MSDN文章中的遗留代码示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文