Hi, please help me with this question.
If two assemblies contain the same fully qualified class, which of the following will be true?
1) It is impossible to add a reference to both assemblies to any given assembly
2) A new root can be added to the assemblies namespace hierarchy by the use of an extern alias
3) The specific colliding name be altering by using an extern alias
4) The collision may be avoided by using a statement to provide an alias
Loading
JohnPosted Aug 25, 2009, 3:35 AM
That's multiple choice questions.
Which of the following are true about namespaces and assemblies?
2) Assemblies may be used to control access to contained classes
3) Namespaces may be aliased to provide a shorthand notation for a fully qualified identifier
4) The same namespace may be used in multiple assemblies
5) A single assembly may contain multiple namespaces
Danatas GerviPosted Aug 23, 2009, 6:25 AM
like
public Form1()
{
InitializeComponent();
Timer t1;
System.Windows.Forms.Timer t2;
System.Threading.Timer t3;
System.Timers.Timer t4;
}
t1 and t2 - same type - because in every form exist (by default)
using System.Windows.Forms;
:)