Buy Questpond's video subscriptions on
huge discount
.
Online: 424
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
C#
>
Loading ...
Can you have different access modifiers on the get/set methods of a property in C#?
Posted by
Virendradugar
on 12/15/2009 | Category:
C# Interview questions
| Views: 9294
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
No. it's not possible. The access specifier has to be same for get and set.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What is obsolete method?
Next > :
How can we make file hidden ?
Comments or Responses
Posted by:
Laksivanna
on: 12/31/2009
it's possible like
public int Value
{
get;
internal set;
}
the set access specifer is internal now.
Posted by:
Mpandu
on: 6/16/2010
It is possible to specify access modifiers on set and get in vs 2008.
Login to post response
More Interview Questions by Virendradugar
JQuery is replacement of Java Script?
Name some of the methods of JQuery used to provide effects?
What are features of JQuery or what can be done using JQuery?
What is JQuery UI?
Using which property you can check on the server whether validators co ...
In which table, SQL SERVER stores the user name and password used for ...
What is the difference between WPF and SilverLight?
How do you send data through querystring to another page without displ ...
Latest Interview Questions
How can we make file hidden ?
The capacity of the stringbuilder get increased,…
Clustered Index vs NonClustered Index.
How does ASP.NET store SessionIDs by default?
How will you make strings with TitleCase ?
DateTime variables can be null.
How to redirect user to secure connection ?
What is optional and named parameter in C#4.0?
More ...