It would be a
lot more pleasant to look at if we really could specify the token instead of the whole
key, but fortunately this ugliness is usually confined to AssemblyInfo.cs, so you won??™t
need to see it often.
In theory, it??™s possible to have an unsigned source assembly and a signed friend
assembly. In practice, that??™s not terribly useful, as the friend assembly typically wants to
204 CHAPTER 7 Concluding C# 2: the final features
have a reference to the source assembly??”and you can??™t refer to an unsigned assembly
from one that is signed! Likewise a signed assembly can??™t specify an unsigned friend
assembly, so typically you end up with both assemblies being signed if either one of
them is.
7.8 Summary
This completes our tour of the new features in C# 2. The topics we??™ve looked at in this
chapter have broadly fallen into two categories: ???nice to have??? improvements that
streamline development, and ???hope you don??™t need it??? features that can get you out of
tricky situations when you need them. To make an analogy between C# 2 and improvements
to a house, the major features from our earlier chapters are comparable to fullscale
additions. Some of the features we??™ve seen in this chapter (such as partial types
and static classes) are more like redecorating a bedroom, and features like namespace
aliases are akin to fitting smoke alarms??”you may never see a benefit, but it??™s nice to
know they??™re there if you ever need them.
Pages:
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398