Which of the following are true about Extension methods?


Ta. They must be declared static
b. They can be declared either static or instance members
c. They must be declared in the same assembly (but may be in different source files)
d. Extension methods can be used to override existing instance methods
e. Extension methods with the same signature for the same class may be declared in multiple namespaces without causing compilation errors

Is this a homework question? If it is, then you need to research the answer for yourself. It won't help you in any way if you can't find answers for yourself. One of the best skills you can have in the world of IT, or any other profession for that matter, is knowing where to find the answers, and just asking someone else to answer it for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.