diff --git a/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp b/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp index 4ea4a9a781e..e7274da84d2 100644 --- a/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp +++ b/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp @@ -39,7 +39,7 @@ void IPAddresses( String^ server ) // // Display the type of address family supported by the server. If the - // server is IPv6-enabled this value is: InternNetworkV6. If the server + // server is IPv6-enabled this value is: InterNetworkV6. If the server // is also IPv4-enabled there will be an additional value of InterNetwork. Console::WriteLine( "AddressFamily: {0}", curAdd->AddressFamily ); diff --git a/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs b/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs index c97b0bb482b..489e797be4e 100644 --- a/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs +++ b/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs @@ -45,7 +45,7 @@ private static void IPAddresses(string server) // // Display the type of address family supported by the server. If the - // server is IPv6-enabled this value is: InternNetworkV6. If the server + // server is IPv6-enabled this value is: InterNetworkV6. If the server // is also IPv4-enabled there will be an additional value of InterNetwork. Console.WriteLine("AddressFamily: " + curAdd.AddressFamily.ToString()); @@ -152,4 +152,4 @@ public static void Main(string[] args) } } - // \ No newline at end of file + // diff --git a/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb b/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb index d7c528c2a1e..ec2ba914ddc 100644 --- a/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb +++ b/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb @@ -11,7 +11,6 @@ ' ' This program shows how to use the IPAddress class to obtain a server ' IP addressess and related information. -Imports System Imports System.Net Imports System.Net.Sockets Imports System.Text.RegularExpressions @@ -22,7 +21,10 @@ Namespace Mssc.Services.ConnectionManagement Module M_TestIPAddress Class TestIPAddress - 'The IPAddresses method obtains the selected server IP address information. 'It then displays the type of address family supported by the server and 'its IP address in standard and byte format. + + 'The IPAddresses method obtains the selected server IP address information. + 'It then displays the type of address family supported by the server and + 'its IP address in standard and byte format. Private Shared Sub IPAddresses(ByVal server As String) Try Dim ASCII As New System.Text.ASCIIEncoding() @@ -36,7 +38,7 @@ Namespace Mssc.Services.ConnectionManagement ' ' Display the type of address family supported by the server. If the - ' server is IPv6-enabled this value is: InternNetworkV6. If the server + ' server is IPv6-enabled this value is: InterNetworkV6. If the server ' is also IPv4-enabled there will be an additional value of InterNetwork. Console.WriteLine(("AddressFamily: " + curAdd.AddressFamily.ToString())) @@ -105,9 +107,6 @@ Namespace Mssc.Services.ConnectionManagement ' Define a regular expression to parse user's input. ' This is a security check. It allows only ' alphanumeric input string between 2 to 40 character long. - 'Define a regular expression to parse user's input. - 'This is a security check. It allows only - 'alphanumeric input string between 2 to 40 character long. Dim rex As New Regex("^[a-zA-Z]\w{1,39}$") If args.Length < 1 Then @@ -132,4 +131,4 @@ Namespace Mssc.Services.ConnectionManagement End Class 'TestIPAddress End Module End Namespace -' \ No newline at end of file +'