Culture-Sensitive VB.NET Method
using System.IO
Public Shared Sub Write(value As Boolean)
Public Shared Sub Write(value As Char)
Public Shared Sub Write(buffer As Char())
Public Shared Sub Write(value As Decimal)
Public Shared Sub Write(value As Double)
Public Shared Sub Write(value As Integer)
Public Shared Sub Write(value As Long)
Public Shared Sub Write(value As Object)
Public Shared Sub Write(value As Single)
Public Shared Sub Write(value As String)
Public Shared Sub Write(value As UInteger)
Public Shared Sub Write(value As ULong)
Public Shared Sub Write(format As String, arg0 As Object)
Public Shared Sub Write(format As String, ParamArray arg As Object())
Public Shared Sub Write(buffer As Char(), index As Integer, count As Integer)
Public Shared Sub Write(format As String, arg0 As Object, arg1 As Object)
Public Shared Sub Write(format As String, arg0 As Object, arg1 As Object, arg2 As Object)
Public Shared Sub Write(format As String, arg0 As Object, arg1 As Object, arg2 As Object, arg3 As Object)
Internationalization (I18n) Method Overview
The Write method writes the text representation of the specified value or values to the standard output stream.
For more information see Microsoft's
MSDN online documentation.
I18n Issues
The Write method relies on a user's system to be set up correctly and being able to properly display the contents passed through the parameters. There is no guarantee that for example Japanese characters will show up uncorrupted in the console for a North American or European user.
Write(Boolean) - Since this will write a text representation of the boolean value to the console, there is an inherent translation problem here. The recommended fix is to pass in the translated values for 'True' or 'False' instead.
Write(Single) and Write(Double) both rely on the locale being set correctly. For example, if Locale is not taken into account, problems are likely to arise with decimal commas vs decimal periods.
VB.NET Encoding Information
|