Udostępnij za pośrednictwem


Using Generics in Remoting Through Configuration

This sample shows the specific syntax that must be followed in client and server configuration to use generics with .NET Framework remoting.

To build the sample using the command prompt

  1. Open a command prompt and navigate to the appropriate language specific subdirectory.

  2. Type msbuild.exe RemotingGenericsInConfigCS.sln at the command line.

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to the appropriate language specific subdirectory.

  2. Double-click the icon for RemotingGenericsInConfigCS.sln to open the file in Visual Studio.

  3. On the Build menu, click Build Solution.

  4. The Client and Server applications will be built in the default \bin or \bin\Debug directories.

To run the sample

  1. Navigate to the directory containing the new executable for Server, using the command prompt or Windows Explorer.

  2. Type Server.exe at the command line, or double-click the icon for Server.exe to launch it from Windows Explorer.

  3. Navigate to the directory containing the new executable for Client, using the command prompt or Windows Explorer.

  4. Type Client.exe at the command line, or double-click the icon for Client.exe to launch it from Windows Explorer.