PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You have recently finished development of a class named TestReward and package the class in a .NET 2.0 assembly named TestObj.dll.
After you ship the assembly and it is used by client applications, you decide to move the TestReward class from
TestObj.dll assembly to the TestRewardObj.dll Assembly. You are to ensure when you ship the updated TestObj.dll and TestRewardObj.dll assemblies that the client
applications continue to work and do not require recompiling.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
The TypeForwardedTo attribute should be used

B.
The TypeConvertor.ConvertTo method should be used

C.
The InternalsVisibleTo attribute should be used

D.
The Type Convertor.ConvertFrom method should be used

Explanation:
The statement used for you to add a type from one assembly into another assembly is the TypeForwardTo attribute which enables you not to have the application recompiled.
Incorrect Answers:
B, D: The TypeConverter class provides a unified way of converting different types of values to other types and can not be used to move a type.
C: The method in question here specifies all nonpublic types in an assembly are visible to other assemblies but can not be used to move types.

One Comment on “What should you do?


Leave a Reply