Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
AnswerRe: Newbie Question Pin
Isaac Gordon1-Jan-10 22:48
Isaac Gordon1-Jan-10 22:48 
QuestionState signalling from windows services Pin
minnie mouse1-Jan-10 11:43
minnie mouse1-Jan-10 11:43 
AnswerRe: State signalling from windows services Pin
Jimmanuel1-Jan-10 12:25
Jimmanuel1-Jan-10 12:25 
GeneralRe: State signalling from windows services Pin
minnie mouse2-Jan-10 8:54
minnie mouse2-Jan-10 8:54 
QuestionHow to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Gilad Kapelushnik1-Jan-10 11:19
Gilad Kapelushnik1-Jan-10 11:19 
GeneralRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) [modified] Pin
harold aptroot1-Jan-10 11:24
harold aptroot1-Jan-10 11:24 
GeneralRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Gilad Kapelushnik1-Jan-10 11:51
Gilad Kapelushnik1-Jan-10 11:51 
GeneralRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
harold aptroot1-Jan-10 12:19
harold aptroot1-Jan-10 12:19 
AnswerRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Nicholas Butler1-Jan-10 13:26
sitebuilderNicholas Butler1-Jan-10 13:26 
AnswerRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Eric Dahlvang1-Jan-10 14:26
Eric Dahlvang1-Jan-10 14:26 
Questiontelnet server in c# Pin
rjs1 41-Jan-10 9:18
rjs1 41-Jan-10 9:18 
AnswerRe: telnet server in c# [modified] Pin
Abhijit Jana1-Jan-10 9:42
professionalAbhijit Jana1-Jan-10 9:42 
GeneralRe: telnet server in c# Pin
Abhishek Sur1-Jan-10 9:58
professionalAbhishek Sur1-Jan-10 9:58 
GeneralRe: telnet server in c# Pin
Abhijit Jana1-Jan-10 21:28
professionalAbhijit Jana1-Jan-10 21:28 
AnswerRe: telnet server in c# Pin
rjs1 420-Jan-10 16:57
rjs1 420-Jan-10 16:57 
Question[Message Deleted] Pin
THE SK1-Jan-10 5:34
THE SK1-Jan-10 5:34 
AnswerRe: How to catch RequestValidationException Pin
AhsanS1-Jan-10 5:43
AhsanS1-Jan-10 5:43 
AnswerRe: [Message Deleted] Pin
Abhijit Jana1-Jan-10 9:41
professionalAbhijit Jana1-Jan-10 9:41 
Questionsp.net c# search function? add friend function? Pin
go90901-Jan-10 4:34
go90901-Jan-10 4:34 
GeneralRe: sp.net c# search function? add friend function? Pin
harold aptroot1-Jan-10 4:52
harold aptroot1-Jan-10 4:52 
QuestionShortened version of setting and getting properties Pin
Brendan Vogt1-Jan-10 3:50
Brendan Vogt1-Jan-10 3:50 
AnswerRe: Shortened version of setting and getting properties Pin
N a v a n e e t h1-Jan-10 4:02
N a v a n e e t h1-Jan-10 4:02 
.NET Enthusiast wrote:
Is there any difference in the following with regards to security?


No. The only difference is compiler will generate the backing field for automated properties.

.NET Enthusiast wrote:
When should we use the one and not the other?


If you want more control over the getter and setter, you need to use the first one. For example, when OrderId is set, you need to fire an event. Something like,
private int _orderId;
public int OrderId
{
   get { return _orderId; }
   set { _
     orderId = value; 
     PropertyChanged(/* ... */);
   }
}
In all other cases, automated properties are just fine.

Smile | :)

Best wishes,
Navaneeth

GeneralRe: Shortened version of setting and getting properties Pin
Brendan Vogt1-Jan-10 9:29
Brendan Vogt1-Jan-10 9:29 
AnswerRe: Shortened version of setting and getting properties Pin
DaveyM691-Jan-10 5:14
professionalDaveyM691-Jan-10 5:14 
QuestionAXmediaplayer under Vis2008 Pin
electriac1-Jan-10 3:36
electriac1-Jan-10 3:36 

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.