C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
Why we use static members in C#.NET?
Arun Singh
13y
2k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
A static member is like a regular (instance)method which is not associated with an instance of the class.You can create static member when you don't want to create instance of the class. Generally you creating a Utilities class which has been used at many place so that we can called the method directly without creating instance of the class. Static method always use static variables. example:- http://stackoverflow.com/questions/4124102/whats-a-static-method-in-c
sushil kumar
8y
0
define protected internal access modifier.
When should be used Debug.Write and Trace.Write?
Message