Exercises


  1. Change the version number and other assembly attributes in AssemblyInfo.cs or Shapes.cs, and view the resulting changes in Shapes.dll using Ildasm.

  2. Make a new MoreShapes assembly with a Square class in addition to Circle and Triangle, and then examine its properties with Ildasm.

  3. Change the assembly reference in ShapeUser.exe to use MoreShapes.dll, and then view the changed properties in Ildasm.

  4. Make your own client for MoreShapes that uses the Square and Triangle objects as well as Circle. Examine the assembly for this client with Ildasm.

  5. Display the command options for Gacutil with the /? flag, then use its options to list the properties of all the global assemblies on your system.

  6. Create a strong name for MoreShapes and sign the assembly. View the results with Ildasm. Try executing your client program, then recompile it to reference the signed assembly.

  7. Install MoreShapes.dll into the Global Assembly Cache using Gacutil, and experiment with ShapeUser and your own client by running with and without the MoreShapes assembly present in the local directory and/or GAC.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net