Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
How to add a ReadOnly property in C#.NET
ASP.NET
>>
CSharp - Part 1
Next Page »
How to add a ReadOnly property in C#.NET?
Properties can be made read-only by having only a get accessor in the implementation.
public class X
{
public X(int id)
{
x_id = id;
}
public int ID
{
get
{
return x_id;
}
}
}
Next Page »
How to prevent a class from being inherited in C#.NET
How to prevent a class from being inherited in C#.NET? - The sealed modifier is used to prevent derivation from a class...
What are generics in C#.NET?
What are generics in C#.NET? - Generic types to maximize code reuse, type safety, and performance....
Use of GetCommandLineArgs() method in C#.NET
What is the use of GetCommandLineArgs() method in C#.NET? - With GetCommandLineArgs() method, the command line arguments can be accessed...
Post your comment
Related Content
ASP.NET - Part 1
ASP.NET - Part 2
ASP.NET - Part 3
ADO.NET Interview Q & A
Advanced ASP.NET Q & A
ADO.NET FAQs
ASP.Net Validation Control
ASP.NET State Management
ASP.NET Caching
ASP.NET Exception Handling
ASP.NET Master Pages
ASP.NET Session State Management
ASP.NET Authentication Authorization
ASP.NET Globalization Localization
.NET Mobile
LINQ
LINQ for experienced
LINQ to SQL
Silverlight - Part 1
Silverlight - Part 2
CSharp - Part 1
CSharp - Part 2
CSharp for Freshers
CSharp Tutorial
CSharp FAQs
VB.NET
VB.NET FAQs
DOT.NET Interview
.NET Remoting
.NET Remoting 2
ASP.Net Tutorial
Follow us
CareerRide on YOUTUBE
CareerRide on INSTAGRAM
MCQs
English
Tutorials
Download
▲