PrepAway - Latest Free Exam Questions & Answers

Which two assembly attributes should you include in the source code?

You are developing an application by using C#. You provide a public key to the development
team during development.
You need to specify that the assembly is not fully signed when it is built.
Which two assembly attributes should you include in the source code? (Each correct answer
presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
AssemblyKeyNameAttribute

B.
ObfuscateAssemblyAttribute

C.
AssemblyDelaySignAttribute

D.
AssemblyKeyFileAttribute

Explanation:
* AssemblyDelaySignAttribute
Specifies that the assembly is not fully signed when created.
* The following code example shows the use of the AssemblyDelaySignAttribute attribute
with the AssemblyKeyFileAttribute.
using System;
using System.Reflection;
[assembly:AssemblyKeyFileAttribute(“TestPublicKey.snk”)]
[assembly:AssemblyDelaySignAttribute(true)]
namespace DelaySign
{
public class Test { }
}

Leave a Reply