How is a property designated as read-only?

Answers were Sorted based on User's Feedback



How is a property designated as read-only? ..

Answer / ram

if the property has only get accessor that property is
called read only property.

Is This Answer Correct ?    5 Yes 0 No

How is a property designated as read-only? ..

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

Post New Answer

More ASP.NET Interview Questions

how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

0 Answers  


What is the Impprsonation?and what is the importence of that?

3 Answers   eXensys,


What is s2s tracking?

0 Answers  


When we are requesting a new URL through Response.Redirect() the new page wil open on the new browser window or it wil open in the same window? If we use Server.Transfer() what wil happen?

1 Answers  


Where would you use an ihttpmodule, and what are the limitations if any?

0 Answers  






What does the .webpart file do?

0 Answers  


Turn Off ASP Session State on an IIS 5.1 Web Site

1 Answers  


Hi , I am Basha. I am searching a job in dotnet.Plz tell me the order of page events in asp.net 2.0> plz send faq's related to c#.net,asp.net,sqlserver2000 etc. to my mail-id : bashask.ss@gmail.com

4 Answers   Sapient,


What is the difference between Trace and Debug?

2 Answers   BirlaSoft,


Why do we use asp.net?

0 Answers  


wt is repeater control and wt is datalist control and wt defferences these two? i want some code in datalist?

1 Answers  


Is global asax mandatory?

0 Answers  


Categories