How is a property designated as read-only?
Answers were Sorted based on User's Feedback
Answer / ram
if the property has only get accessor that property is
called read only property.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sushain sharma
By ommitting set part of property e.g
class A
{
private int n=5;
public int Number
{
get
{
return n;
}
}
}
| Is This Answer Correct ? | 2 Yes | 2 No |
What are the namespaces used in asp.net mvc? : asp.net mvc
How to retrieve the information from datatable citywise in c#?
What is use of <% %> in asp.net?
What is the use of view state?
Is it possible to perform data validations in the database?
How to write unmanaged code and how to identify whether the code is managed /unmanaged?
What are triggers of an updatepanel?
What is enableviewstate?
What is an iHTTPModule, and explain its implementation with its limitations?
What symbol specifies the beginning of a query string?
How do pass data from one layer to another layer in N-tier architecture?
How can we communicate with each server in N-tier Architecture? and what are the methods?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)