diff --git a/snippets/csharp/System.IO/Path/Combine/Program.cs b/snippets/csharp/System.IO/Path/Combine/Program.cs index 67bad002035..844fff76a84 100644 --- a/snippets/csharp/System.IO/Path/Combine/Program.cs +++ b/snippets/csharp/System.IO/Path/Combine/Program.cs @@ -76,7 +76,7 @@ private static void Combine4() // C:\Pictures\Saved Pictures\2019\Jan\ // // The example displays the following output if run on a Unix-based system: - // C:\Pictures\Saved Pictures\2019\Jan\ + // C:\Pictures\/Saved Pictures\/2019\/Jan\ // } } diff --git a/snippets/visualbasic/api/system.io/path/combine/Program.vb b/snippets/visualbasic/api/system.io/path/combine/Program.vb index a201121609a..650a7737c8c 100644 --- a/snippets/visualbasic/api/system.io/path/combine/Program.vb +++ b/snippets/visualbasic/api/system.io/path/combine/Program.vb @@ -72,7 +72,7 @@ Module Program ' C:\Pictures\Saved Pictures\2019\Jan\ ' ' The example displays the following output if run on a Unix-based system: - ' C:\Pictures\Saved Pictures\2019\Jan\ + ' C:\Pictures\/Saved Pictures\/2019\/Jan\ ' End Sub End Module diff --git a/xml/System/DateTime.xml b/xml/System/DateTime.xml index 699302793be..c12af809ab0 100644 --- a/xml/System/DateTime.xml +++ b/xml/System/DateTime.xml @@ -9934,6 +9934,17 @@ The following example illustrates the if was converted successfully; otherwise, . To be added. + The length of is 1, and it is not one of the format specifier characters defined for . + + -or- + + does not contain a valid custom format pattern. + + is not a valid value. + + -or- + + contains an invalid combination of values (for example, both and ). @@ -9999,8 +10010,15 @@ The following example illustrates the When this method returns, contains the value equivalent to the date and time contained in , if the conversion succeeded, or DateTime.MinValue if the conversion failed. The conversion fails if the parameter is , is , or does not contain a valid string representation of a date and time. This parameter is passed uninitialized. Converts the specified char span of a date and time to its equivalent and returns a value that indicates whether the conversion succeeded. - if the parameter was converted successfully; otherwise, . + if was converted successfully; otherwise, . To be added. + The length of an element in is 1, and it is not one of the format specifier characters defined for . + + is not a valid value. + + -or- + + contains an invalid combination of values (for example, both and ). @@ -10129,6 +10147,11 @@ The following example illustrates the + The length of is 1, and it is not one of the format specifier characters defined for . + + -or- + + does not contain a valid custom format pattern. is not a valid value. @@ -10269,6 +10292,7 @@ The following example illustrates the + The length of an element in is 1, and it is not one of the format specifier characters defined for . is not a valid value.