Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
guys i need your help please . my question is
 
Which of the following are true about Extension Methods?
 
1.they can be declared either static or instance members.
 
2.extension methods can be used to override existing instance methods
 
3.extensio methods with the same signature for the same class may be declared in
multiple namespace without causing comilation errors.
 
4. they must be declared in the same assembley(but may be in different source files)
 
please tell me right answer
Posted 11-Mar-12 6:34am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

The question is formulated in the way that answering that does not provide any real knowledge. This is a form of idiotic interview or test questions. Such questions should not be answered and even asked at the forum promoting real knowledge, understanding of technology and skills.
 
The only decent approach would be this: learn this (really simple) topic and do exercise in code to make sure you understand it and can use in practice. Please see:
http://msdn.microsoft.com/en-us/library/bb383977.aspx[^].
 
Even when you learn it all, I would not advise even looking at the questions. They promote thinking along the wrong lines. This is my personal opinion though; may be for some they could be used as some self-control.
 
—SA
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Sounds like a test question. If so, http://www.paddedwall.org/homework.aspx[^].
 
If it's not, then it's an interview question. Look it up if you don't know the answer. Google is free (and the answer is EASY to find. If you don't have the google chops necessary to find the answers you need on a day-to-day basis, or if you don't have the drive to find them on your own, you have to ask yourself what kind of a programmer are you really going to be?
  Permalink  
Comments
SAKryukov at 11-Mar-12 15:01pm
   
Agree, my 5. I also argue that the question of this sort, even answered, don't promote any kind of real knowledge; please see my answer.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 11 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100