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?

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


Please Help Members By Posting Answers For Below Questions

What is the difference between globalization and localization?

906


What is asp net objects?

992


How do you remove duplicates without using remove duplicate stage?

999


What is the importance of Global.asax in ASP.NET?

1070


Explain the difference between the web config and machine config.

978


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

936


Explain the boxing and unboxing concept in .net?

800


What kind of data can be stored in viewstate?

941


Why asp.net is better than php?

929


What threading model used in asp and asp.net?

1012


What is odata in web api?

1034


Do session use cookies in asp net?

951


3. What goals do you have in your career?

1813


How to handle errors in Web API?

1112


How do I use a proxy server when invoking a web service?

947