Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: FolderBrowserDialog Pin
Manas Bhardwaj14-Jul-07 4:40
professionalManas Bhardwaj14-Jul-07 4:40 
QuestionMembershipProvider.EncryptPassword Issue Pin
Brendan Vogt14-Jul-07 3:53
Brendan Vogt14-Jul-07 3:53 
AnswerRe: MembershipProvider.EncryptPassword Issue Pin
Mike Dimmick14-Jul-07 7:22
Mike Dimmick14-Jul-07 7:22 
QuestionGet and set properties Pin
prabhu dot net14-Jul-07 3:26
prabhu dot net14-Jul-07 3:26 
AnswerRe: Get and set properties Pin
Luc Pattyn14-Jul-07 3:39
sitebuilderLuc Pattyn14-Jul-07 3:39 
AnswerRe: Get and set properties Pin
Urs Enzler14-Jul-07 4:41
Urs Enzler14-Jul-07 4:41 
GeneralRe: Get and set properties Pin
User 665814-Jul-07 7:07
User 665814-Jul-07 7:07 
GeneralRe: Get and set properties Pin
Mike Dimmick14-Jul-07 7:38
Mike Dimmick14-Jul-07 7:38 
Urs Enzler wrote:
Properties are inlined (if I'm not mistaken)


The JIT may choose to inline any method that's short enough. If a property setter or getter method is particularly long, it probably won't be inlined - the fact that it's a property is irrelevant.

The CLR doesn't really 'understand' properties or events - the compiler is responsible for compiling a call to the correct underlying functions. In C# they're always called set_Property, get_Property and add_Event, remove_Event respectively (for a property called Property and an event named Event). The metadata links them into a single property or event. An standard event written in C# also has a field of the appropriate delegate type which is invisible to the user. It's possible to write an event which has custom add and remove methods; Windows Forms does this, making use of a list so that for example Control (which has 69 events in .NET 2.0) does not need to have 69 delegate fields unnecessarily bloating the memory footprint of each object. The feature is so useful that the implementation mostly lives in System.ComponentModel.Component's Events property.

Stability. What an interesting concept. -- Chris Maunder

AnswerRe: Get and set properties Pin
Guffa14-Jul-07 5:40
Guffa14-Jul-07 5:40 
Questionevents in interface Pin
Maddie from Dartford14-Jul-07 2:06
Maddie from Dartford14-Jul-07 2:06 
AnswerRe: events in interface Pin
mav.northwind14-Jul-07 2:37
mav.northwind14-Jul-07 2:37 
QuestionDifferentiating between different hotkeys in c# Pin
Luke Dyer14-Jul-07 1:55
Luke Dyer14-Jul-07 1:55 
AnswerRe: Differentiating between different hotkeys in c# Pin
Luc Pattyn14-Jul-07 2:30
sitebuilderLuc Pattyn14-Jul-07 2:30 
QuestionKeystroke events on a Form? Pin
kbalias14-Jul-07 1:38
kbalias14-Jul-07 1:38 
AnswerRe: Keystroke events on a Form? Pin
Luc Pattyn14-Jul-07 2:32
sitebuilderLuc Pattyn14-Jul-07 2:32 
Questionkey sensitive Problem Pin
ytubis14-Jul-07 0:40
ytubis14-Jul-07 0:40 
AnswerRe: key sensitive Problem Pin
kubben14-Jul-07 1:17
kubben14-Jul-07 1:17 
AnswerRe: key sensitive Problem Pin
Luc Pattyn14-Jul-07 2:35
sitebuilderLuc Pattyn14-Jul-07 2:35 
QuestionC# Transelation :blush: Pin
Muammar©13-Jul-07 23:38
Muammar©13-Jul-07 23:38 
AnswerRe: C# Transelation :blush: Pin
Guffa13-Jul-07 23:57
Guffa13-Jul-07 23:57 
GeneralRe: C# Transelation :blush: Pin
Muammar©14-Jul-07 0:25
Muammar©14-Jul-07 0:25 
GeneralRe: C# Transelation :blush: [modified] Pin
Luc Pattyn14-Jul-07 2:46
sitebuilderLuc Pattyn14-Jul-07 2:46 
GeneralRe: C# Transelation :blush: Pin
Muammar©17-Jul-07 23:41
Muammar©17-Jul-07 23:41 
QuestionCompiling C# application using another C# code Pin
satsumatable13-Jul-07 22:12
satsumatable13-Jul-07 22:12 
QuestionC# COM entry point function Pin
George_George13-Jul-07 21:56
George_George13-Jul-07 21:56 

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.