1.

Which of the following is correct ways of applying an attribute?

A. <pre><code class="csharp">[WebService (Name = "IndiaBIX", Description = "BIX WebService")] class AuthenticationService: WebService { /* .... */}</code></pre>
B. <pre><code class="csharp">&lt;WebService ( Name : "IndiaBIX", Description : "BIX WebService" )&gt; class AuthenticationService: inherits WebService { /* .... */}</code></pre>
C. <pre><code class="csharp">&lt;WebService ( Name = "IndiaBIX", Description = "BIX WebService" )&gt; class AuthenticationService: extends WebService { /* .... */}</code></pre>
D. <pre><code class="csharp">[WebService ( Name := "IndiaBIX", Description := "BIX WebService")] class AuthenticationService: inherits WebService { /* .... */}</code></pre>
Answer» B. <pre><code class="csharp">&lt;WebService ( Name : "IndiaBIX", Description : "BIX WebService" )&gt; class AuthenticationService: inherits WebService { /* .... */}</code></pre>


Discussion

No Comment Found

Related MCQs