Monday, December 23, 2002
| file name | file size (kb) |
| Field2Prop.zip | 38 |
This .NET command-line utility will create wrapper classes for other classes that contain public fields instead of public properties. One reason you might want such a thing is because binding a class instance to a DataGrid in .NET will expose the class's public properties automatically (to bind them to columns, for instance), but not public fields. If you use .NET's wsdl.exe command-line utility to generate a proxy class for an external web service, however, you only get public fields and no properties. So this utility could be run on an assembly type after you generate the assembly for a web service proxy.
The source code (C#) is included. You can peak at the source code here before deciding to download. Also you can look at the documentation for the main class (Field2Prop) here before deciding to download.
This invocation at the command-line shows the Usage details:
![]() |
Requires the CommandLineArgs.dll that is also in the Zip.