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 are the advantages of using session?

893


What is an il?

1040


how to transfer the file from client to server using asp.net

1121


What are user controls?

1015


Define static member?

1001


What is ispostback property?

921


What is asp.net web application?

1053


How does a web application session work?

1099


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

1052


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

1050


What are the server controls in asp.net?

961


How does the cookies work in asp.net?

1173


What are the differences between code behind and code inline?

1114


Describe in brief .net framework and its components.

995


Can we have a web application running without web.config file?

994