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

How to reduce the width of textbox in editcommandcolumn of datagrid?

0 Answers  


Explain different authentication modes in asp.net?

0 Answers  


Out of ASP or ASP.NET which one is stateless?

0 Answers   BirlaSoft,


How much data (Max K) can go into a QueryString?

4 Answers   TCS, WEB,


how we Creating a Web Service

1 Answers   Mind Tree,


what is stateless ?

2 Answers   TCS,


How many Directives r in ASP.NET?

8 Answers  


Can we throw exception from catch Block?

9 Answers   Accenture, IBM,


What is the displayafter property in updateprogress control?

0 Answers  


How do u declare static variable and how it is declared and what is its lifetime?

0 Answers  


What is the difference between asp.net and mvc?

0 Answers  


In cache where dats is stored and how(file or object?)

2 Answers  


Categories