Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How is a property designated as read-only?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the used of "ispostback" property?

1098


How to find out what version of asp.net I am using on my machine?

1081


How to set the pane area to transparent of a scrollPane component.?

998


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

2141


Explain how can you debug your .net application?

912


Describe the disadvantage of cookies.

1014


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

1006


What is the life-span of the items in the viewstate?

925


What is difference between asp state management and asp.net state management?

1071


Can I read the hard disk serial # of the client computer using asp.net?

1066


What is postback in asp net?

1034


Can you use c# without .net?

961


How does session work?

899


Difference between Response.redirect vs server.transfer?

1166


What is viewstate? In which event of the page life cycle, is the viewstate available?

1012