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 do we make a poperty read only?



How do we make a poperty read only?..

Answer / jitender

Suppose we have a property BarColor
the to make it read only use

private string color;

public string BarColor
{
get
{
return(color);
}
} // No need to set it

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the difference between control and component?

4 Answers  


What are the two properties that are common in every validation control?

4 Answers   Siebel,


What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?

1 Answers   Patni,


How to rename a table using sql queries?

0 Answers  


Explain the Order of events in an asp.net page?

0 Answers  


What are the disadvantages of using session?

0 Answers  


How to check the end of the record in Datareader?

2 Answers   Cognizant,


What base class do all Web Forms inherit from?

1 Answers  


Difference between ASP & ASP.NET Session State

1 Answers   Cognizant, Wipro,


How do you register a .NET assembly?

3 Answers   Microsoft,


How does session state work in asp.net?

0 Answers  


How do you create master pages in asp.net?

2 Answers   Wipro,


Categories