TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kg P
NA
12
3k
Why class containing extension method needs to be static ?
Apr 15 2017 4:24 AM
As we understand that when we create extension method on any type, we create it
as static method. But, class containing this extension method is also needs to be
static, otherwise we get compile time error. I didn't get proper answer for this
why this class should be static in this case?
Only for accessing static method, we don't need static class. That we can de even
if class is non-static i.e. we can access that static method by
ClassName.MethodName(). But, why this class is to be static in this case?
Can someone please answer this?
Reply
Answers (
1
)
i have four radio button i have to generate a code based on
how to read file uploader text files in to textboxes