Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon27-Mar-14 15:07
mvePete O'Hanlon27-Mar-14 15:07 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty27-Mar-14 16:00
Higty27-Mar-14 16:00 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon27-Mar-14 21:20
mvePete O'Hanlon27-Mar-14 21:20 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 13:47
Higty30-Mar-14 13:47 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon30-Mar-14 20:22
mvePete O'Hanlon30-Mar-14 20:22 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 21:31
Higty30-Mar-14 21:31 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon30-Mar-14 22:38
mvePete O'Hanlon30-Mar-14 22:38 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 23:46
Higty30-Mar-14 23:46 
>Having the setter with a different scope is a fairly common approach
Of course.It is absolutely common usage patterns as you say.
My idea for different scoped getter,setter is

C#
public property T MyReadOnlyProperty 
{ 
 get 
 { 
   return field; 
 } 
 private set 
 {
   field = value; 
 } 
}

public class Person
{
  property MyReadOnlyProperty Int32 Age;
}


I showed a concept at Here[^].
Even though it didn't show in the detail, but developer who has good sense can be grasp a point of this feature.

I think that it is premature to show entire the detail spec.
Language team may be glad to see a concept or idea that inspire them not the entire detail of feature spec.
I know there are so many things under the foot to achieve only single language feature.
Once they grasp concept they can implement it with solving other many issue(Intellisense,backward compatibility...etc) to achieve it.
Because they have much more knowledge of C# than me.
Of cource it must be valuable to implement.


In this case, the results same to your above sample shown below.
C#
public class Person
{
  public int MyProperty { get; private set; }
}


So, there are no advantage or disadvantage by using property template with this case.
You can use property template or use current language feature.
Maybe I use current language feature.


>as you did not seem to understand what the term meant.
Paul, please don't be critical, please don't talk about whether I understand or not, please talk about a feature, design problem, a question of this feature.


regards.
Higty

GeneralRe: Where am I send a request about C# new language feature Pin
BobJanova27-Mar-14 6:36
BobJanova27-Mar-14 6:36 
GeneralRe: Where am I send a request about C# new language feature Pin
Matt T Heffron27-Mar-14 7:21
professionalMatt T Heffron27-Mar-14 7:21 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon27-Mar-14 11:26
mvePete O'Hanlon27-Mar-14 11:26 
GeneralRe: Where am I send a request about C# new language feature Pin
BobJanova28-Mar-14 0:31
BobJanova28-Mar-14 0:31 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon28-Mar-14 1:27
mvePete O'Hanlon28-Mar-14 1:27 
GeneralRe: Where am I send a request about C# new language feature Pin
BobJanova28-Mar-14 4:33
BobJanova28-Mar-14 4:33 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon28-Mar-14 4:38
mvePete O'Hanlon28-Mar-14 4:38 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 14:07
Higty30-Mar-14 14:07 
Questionis it secure to send windows password via netNamedPipeBinding to WCF service running on windows service? Pin
sudhakarponnusamy@gmail.com25-Mar-14 21:27
sudhakarponnusamy@gmail.com25-Mar-14 21:27 
AnswerRe: is it secure to send windows password via netNamedPipeBinding to WCF service running on windows service? Pin
BobJanova27-Mar-14 6:40
BobJanova27-Mar-14 6:40 
QuestionC#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH25-Mar-14 21:07
professionalAshwiniSH25-Mar-14 21:07 
QuestionRe: C#: Setup Project in VS2010 with Custom actions Pin
Richard MacCutchan25-Mar-14 22:37
mveRichard MacCutchan25-Mar-14 22:37 
AnswerRe: C#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH25-Mar-14 23:38
professionalAshwiniSH25-Mar-14 23:38 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
Richard MacCutchan25-Mar-14 23:41
mveRichard MacCutchan25-Mar-14 23:41 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH27-Mar-14 0:20
professionalAshwiniSH27-Mar-14 0:20 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
Richard MacCutchan27-Mar-14 0:22
mveRichard MacCutchan27-Mar-14 0:22 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH27-Mar-14 0:48
professionalAshwiniSH27-Mar-14 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.