diff --git a/samples/snippets/cpp/VS_Snippets_CLR_System/system.Attribute.TypeId/CPP/typeid.cpp b/samples/snippets/cpp/VS_Snippets_CLR_System/system.Attribute.TypeId/CPP/typeid.cpp index 7873d08d9a4..49ff518b666 100644 --- a/samples/snippets/cpp/VS_Snippets_CLR_System/system.Attribute.TypeId/CPP/typeid.cpp +++ b/samples/snippets/cpp/VS_Snippets_CLR_System/system.Attribute.TypeId/CPP/typeid.cpp @@ -116,7 +116,7 @@ int main() /* This example of the Attribute::TypeId property -generates the following output. +generates output similar to the following: Create instances from a derived Attribute class that implements TypeId, and then display the attributes and corresponding TypeId values: diff --git a/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CPP/batochar.cpp b/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CPP/batochar.cpp index 233655d25a9..af09cfa7513 100644 --- a/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CPP/batochar.cpp +++ b/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CPP/batochar.cpp @@ -36,7 +36,7 @@ int main() } /* -This example of the BitConverter::ToChar( unsigned char[ ], int ) +This example of the BitConverter::ToChar(unsigned char[ ], int) method generates the following output. It converts elements of a byte array to __wchar_t values. @@ -51,9 +51,9 @@ index array elements __wchar_t 3 2A-00 * 5 41-00 A 7 7D-00 } - 9 C5-00 - 11 A8-03 ? - 13 29-04 ? - 15 AC-20 ? + 9 C5-00 Å + 11 A8-03 Ψ + 13 29-04 Щ + 15 AC-20 € */ // diff --git a/samples/snippets/cpp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CPP/dtfi_longdatepattern.cpp b/samples/snippets/cpp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CPP/dtfi_longdatepattern.cpp index 0b8bc1f75e1..1e9c9664b35 100644 --- a/samples/snippets/cpp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CPP/dtfi_longdatepattern.cpp +++ b/samples/snippets/cpp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CPP/dtfi_longdatepattern.cpp @@ -21,11 +21,11 @@ int main() } /* -This code produces the following output. The question marks take the place of native script characters. +This code produces the following output: CULTURE PROPERTY VALUE en-US dddd, MMMM dd, yyyy -ja-JP yyyy'?'M'?'d'?' +ja-JP yyyy'年'M'月'd'日' fr-FR dddd d MMMM yyyy */ diff --git a/samples/snippets/csharp/VS_Snippets_CLR/RNGCSP/CS/rngcsp.cs b/samples/snippets/csharp/VS_Snippets_CLR/RNGCSP/CS/rngcsp.cs index 0ef6d766f02..2dbf52c4369 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/RNGCSP/CS/rngcsp.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR/RNGCSP/CS/rngcsp.cs @@ -27,7 +27,6 @@ public static void Main() Console.WriteLine("{0}: {1} ({2:p1})", i + 1, results[i], (double)results[i] / (double)totalRolls); } rngCsp.Dispose(); - Console.ReadLine(); } // This method simulates a roll of the dice. The input parameter is the diff --git a/samples/snippets/csharp/VS_Snippets_CLR/StringInfo/CS/StringInfo.cs b/samples/snippets/csharp/VS_Snippets_CLR/StringInfo/CS/StringInfo.cs index e2292bf5366..bfd5a29806b 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/StringInfo/CS/StringInfo.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR/StringInfo/CS/StringInfo.cs @@ -58,12 +58,12 @@ static void EnumTextElementIndexes(String s) { } } -// This code produces the following output. +// This code produces the following output: // // Result of GetTextElementEnumerator: -// Character at index 0 is 'a-"' +// Character at index 0 is 'ā̈' // Character at index 3 is 'b' -// Character at index 4 is 'c,' +// Character at index 4 is 'ç' // // Result of ParseCombiningCharacters: // Character 0 starts at index 0 diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Attribute.TypeId/CS/typeid.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Attribute.TypeId/CS/typeid.cs index 183ed58384b..19a1f832c57 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Attribute.TypeId/CS/typeid.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Attribute.TypeId/CS/typeid.cs @@ -118,7 +118,7 @@ static void Main( ) /* This example of the Attribute.TypeId property -generates the following output. +generates output similar to the following: Create instances from a derived Attribute class that implements TypeId, and then display the attributes and corresponding TypeId values: diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CS/batochar.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CS/batochar.cs index c7cc090d278..430dff006bc 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CS/batochar.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/CS/batochar.cs @@ -46,7 +46,7 @@ public static void Main( ) } /* -This example of the BitConverter.ToChar( byte[ ], int ) +This example of the BitConverter.ToChar(byte[ ], int) method generates the following output. It converts elements of a byte array to char values. @@ -62,8 +62,8 @@ 3 2A-00 * 5 41-00 A 7 7D-00 } 9 C5-00 Å - 11 A8-03 ? - 13 29-04 ? - 15 AC-20 ? + 11 A8-03 Ψ + 13 29-04 Щ + 15 AC-20 € */ // diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/dtfi_longdatepattern.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/dtfi_longdatepattern.cs index ed9a0e9fc3c..672c209968b 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/dtfi_longdatepattern.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/dtfi_longdatepattern.cs @@ -23,11 +23,11 @@ public static void PrintPattern( String myCulture ) { } /* -This code produces the following output. The question marks take the place of native script characters. +This code produces the following output: CULTURE PROPERTY VALUE en-US dddd, MMMM d, yyyy - ja-JP yyyy'?'M'?'d'?' + ja-JP yyyy'年'M'月'd'日' fr-FR dddd d MMMM yyyy */ diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern1.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern1.cs index a8a55f1ccef..2454ca28bad 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern1.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern1.cs @@ -6,7 +6,7 @@ public class Example { public static void Main() { - DateTime date1 = new DateTime(2001, 11, 12); + DateTime date1 = new DateTime(2011, 11, 12); string[] cultureNames = { "en-US", "fr-FR", "ru-RU", "de-DE" }; Console.WriteLine("{0,-7} {1,-20} {2:D}\n", "Culture", "Long Date Pattern", "Date"); foreach (var cultureName in cultureNames) { @@ -20,7 +20,8 @@ public static void Main() } // The example displays the following output: // Culture Long Date Pattern Date -// en-US dddd, MMMM d, yyyy Saturday, November 12, 2011 +// +// en-US dddd, MMMM d, yyyy Saturday, November 12, 2011 // fr-FR dddd d MMMM yyyy samedi 12 novembre 2011 // ru-RU d MMMM yyyy 'г.' 12 ноября 2011 г. // de-DE dddd, d. MMMM yyyy Samstag, 12. November 2011 diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern2.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern2.cs index db5b2d2778e..38ecfad30c3 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern2.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/CS/longdatepattern2.cs @@ -38,7 +38,7 @@ private static string GetCalendarName(Calendar cal) // // Gregorian-Localized dd MMMM, yyyy 07 آب, 2011 // UmAlQura dd/MMMM/yyyy 07/رمضان/1432 -// Hijri dd/MM/yyyy 08/09/1432 +// Hijri dd MMMM, yyyy 08 رمضان, 1432 // Gregorian-USEnglish dddd, MMMM dd, yyyy Sunday, August 07, 2011 // Gregorian-MiddleEastFrench dddd, MMMM dd, yyyy dimanche, août 07, 2011 // Gregorian-TransliteratedEnglish dddd, MMMM dd, yyyy الأحد, أغسطس 07, 2011 diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Int64.ToString/cs/ToString.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Int64.ToString/cs/ToString.cs index 32470d6d948..5d107878f35 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Int64.ToString/cs/ToString.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Int64.ToString/cs/ToString.cs @@ -121,8 +121,8 @@ private static void CallToStringWithSpecifiersAndCultures() // G format using es-ES culture: 1679 -3045 // // C format using en-US culture: $1,679.00 ($3,045.00) - // C format using fr-FR culture: 1 679,00 ? -3 045,00 ? - // C format using es-ES culture: 1.679,00 ? -3.045,00 ? + // C format using fr-FR culture: 1 679,00 € -3 045,00 € + // C format using es-ES culture: 1.679,00 € -3.045,00 € // // D8 format using en-US culture: 00001679 -00003045 // D8 format using fr-FR culture: 00001679 -00003045 @@ -140,13 +140,13 @@ private static void CallToStringWithSpecifiersAndCultures() // N format using fr-FR culture: 1 679,00 -3 045,00 // N format using es-ES culture: 1.679,00 -3.045,00 // - // P format using en-US culture: 167,900.00 % -304,500.00 % + // P format using en-US culture: 167,900.00% -304,500.00% // P format using fr-FR culture: 167 900,00 % -304 500,00 % // P format using es-ES culture: 167.900,00 % -304.500,00 % // - // X8 format using en-US culture: 0000068F FFFFF41B - // X8 format using fr-FR culture: 0000068F FFFFF41B - // X8 format using es-ES culture: 0000068F FFFFF41B + // X8 format using en-US culture: 0000068F FFFFFFFFFFFFF41B + // X8 format using fr-FR culture: 0000068F FFFFFFFFFFFFF41B + // X8 format using es-ES culture: 0000068F FFFFFFFFFFFFF41B // } } diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/RNGCSP/VB/rngcsp.vb b/samples/snippets/visualbasic/VS_Snippets_CLR/RNGCSP/VB/rngcsp.vb index 20b94e776fd..de4f178dbaa 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/RNGCSP/VB/rngcsp.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/RNGCSP/VB/rngcsp.vb @@ -27,7 +27,6 @@ Class RNGCSP i += 1 End While rngCsp.Dispose() - Console.ReadLine() End Sub diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/StringInfo/vb/stringinfo.vb b/samples/snippets/visualbasic/VS_Snippets_CLR/StringInfo/vb/stringinfo.vb index 7e82f8ab59b..9029f90348a 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/StringInfo/vb/stringinfo.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/StringInfo/vb/stringinfo.vb @@ -55,10 +55,11 @@ Public Module Example End Sub End Module ' The example displays the following output: +' ' Result of GetTextElementEnumerator: -' Character at index 0 is 'a-"' +' Character at index 0 is 'ā̈' ' Character at index 3 is 'b' -' Character at index 4 is 'c,' +' Character at index 4 is 'ç' ' ' Result of ParseCombiningCharacters: ' Character 0 starts at index 0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Attribute.TypeId/VB/typeid.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Attribute.TypeId/VB/typeid.vb index 83422bb0860..0fb09cc4df4 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Attribute.TypeId/VB/typeid.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Attribute.TypeId/VB/typeid.vb @@ -121,7 +121,7 @@ Namespace NDP_UE_VB End Namespace ' NDP_UE_VB ' This example of the Attribute.TypeId property -' generates the following output. +' generates output similar to the following: ' ' Create instances from a derived Attribute class that implements TypeId, ' and then display the attributes and corresponding TypeId values: diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/VB/batochar.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/VB/batochar.vb index 187d0c9dda9..fe78fdaf2ed 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/VB/batochar.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.ToXXX.Others/VB/batochar.vb @@ -51,7 +51,7 @@ End Module ' initial Byte array ' ------------------ ' 20-00-00-2A-00-41-00-7D-00-C5-00-A8-03-29-04-AC-20 -' +' ' index array elements Char ' ----- -------------- ---- ' 0 20-00 @@ -60,7 +60,7 @@ End Module ' 5 41-00 A ' 7 7D-00 } ' 9 C5-00 Å -' 11 A8-03 ? -' 13 29-04 ? -' 15 AC-20 ? +' 11 A8-03 Ψ +' 13 29-04 Щ +' 15 AC-20 € ' \ No newline at end of file diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/dtfi_longdatepattern.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/dtfi_longdatepattern.vb index dd160266824..0856151e68d 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/dtfi_longdatepattern.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/dtfi_longdatepattern.vb @@ -24,11 +24,11 @@ Public Class SamplesDTFI End Class -'This code produces the following output. The question marks take the place of native script characters. +'This code produces the following output: ' ' CULTURE PROPERTY VALUE ' en-US dddd, MMMM d, yyyy -' ja-JP yyyy'?'M'?'d'?' +' ja-JP yyyy'年'M'月'd'日' ' fr-FR dddd d MMMM yyyy ' ' \ No newline at end of file diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern1.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern1.vb index e425f32290d..f138c2121bf 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern1.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern1.vb @@ -19,7 +19,8 @@ Module Example End Module ' The example displays the following output: ' Culture Long Date Pattern Date -' en-US dddd, MMMM d, yyyy Saturday, November 12, 2011 +' +' en-US dddd, MMMM d, yyyy Saturday, November 12, 2011 ' fr-FR dddd d MMMM yyyy samedi 12 novembre 2011 ' ru-RU d MMMM yyyy 'г.' 12 ноября 2011 г. ' de-DE dddd, d. MMMM yyyy Samstag, 12. November 2011 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern2.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern2.vb index 647dd13b7dd..b8685d03a29 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern2.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.DateTimeFormatInfo.LongDatePattern/VB/longdatepattern2.vb @@ -39,7 +39,7 @@ End Module ' ' Gregorian-Localized dd MMMM, yyyy 07 آب, 2011 ' UmAlQura dd/MMMM/yyyy 07/رمضان/1432 -' Hijri dd/MM/yyyy 08/09/1432 +' Hijri dd MMMM, yyyy 08 رمضان, 1432 ' Gregorian-USEnglish dddd, MMMM dd, yyyy Sunday, August 07, 2011 ' Gregorian-MiddleEastFrench dddd, MMMM dd, yyyy dimanche, août 07, 2011 ' Gregorian-TransliteratedEnglish dddd, MMMM dd, yyyy الأحد, أغسطس 07, 2011 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Int64.ToString/vb/ToString.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Int64.ToString/vb/ToString.vb index ccf04f8f782..5892beb2088 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Int64.ToString/vb/ToString.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Int64.ToString/vb/ToString.vb @@ -111,37 +111,38 @@ Module LongToString Console.WriteLine() Next ' The example displays the following output to the console: + ' ' G format using en-US culture: 1679 -3045 ' G format using fr-FR culture: 1679 -3045 ' G format using es-ES culture: 1679 -3045 - ' + ' ' C format using en-US culture: $1,679.00 ($3,045.00) - ' C format using fr-FR culture: 1 679,00 ? -3 045,00 ? - ' C format using es-ES culture: 1.679,00 ? -3.045,00 ? - ' + ' C format using fr-FR culture: 1 679,00 € -3 045,00 € + ' C format using es-ES culture: 1.679,00 € -3.045,00 € + ' ' D8 format using en-US culture: 00001679 -00003045 ' D8 format using fr-FR culture: 00001679 -00003045 ' D8 format using es-ES culture: 00001679 -00003045 - ' + ' ' E2 format using en-US culture: 1.68E+003 -3.05E+003 ' E2 format using fr-FR culture: 1,68E+003 -3,05E+003 ' E2 format using es-ES culture: 1,68E+003 -3,05E+003 - ' + ' ' F format using en-US culture: 1679.00 -3045.00 ' F format using fr-FR culture: 1679,00 -3045,00 ' F format using es-ES culture: 1679,00 -3045,00 - ' + ' ' N format using en-US culture: 1,679.00 -3,045.00 ' N format using fr-FR culture: 1 679,00 -3 045,00 ' N format using es-ES culture: 1.679,00 -3.045,00 - ' - ' P format using en-US culture: 167,900.00 % -304,500.00 % + ' + ' P format using en-US culture: 167,900.00% -304,500.00% ' P format using fr-FR culture: 167 900,00 % -304 500,00 % ' P format using es-ES culture: 167.900,00 % -304.500,00 % - ' - ' X8 format using en-US culture: 0000068F FFFFF41B - ' X8 format using fr-FR culture: 0000068F FFFFF41B - ' X8 format using es-ES culture: 0000068F FFFFF41B + ' + ' X8 format using en-US culture: 0000068F FFFFFFFFFFFFF41B + ' X8 format using fr-FR culture: 0000068F FFFFFFFFFFFFF41B + ' X8 format using es-ES culture: 0000068F FFFFFFFFFFFFF41B ' End Sub End Module