[dba-VB] C#: Did you know - private fields ...

Gustav Brock gustav at cactus.dk
Sun Jun 24 07:45:23 CDT 2012

Hi Shamil

Thanks for this pointer. I noticed the blog which explains and documents it in full:

LINQ: Building an IQueryable provider series

Will have to study this a quiet(!?) day.


>>> Salakhetdinov Shamil <mcp2004 at mail.ru> 24-06-12 13:35 >>>
Hi Gustav --

I have also never attempted to do so (refer private fields/properties of another instance of the same class) - the subject coding technique is coming from here:


It's in CompundKey.cs - CompoundKey class.

It's also interesting to note that this class has one public constructor with param array 

public CompoundKey(params object[] values)

and this constructor is also called when CompoundKey class is instantiated this way:

CompoundKey key = new CompoundKey()*

with paramarray object array initialized to an empty but not null array.*

Thank you.

-- Shamil

Sun, 24 Jun 2012 11:09:02 +0200 от "Gustav Brock" <gustav at cactus.dk>:
Hi Shamil

No I didn't. On the other hand, I've never attempted to do so. As you and most others, I use naming conventions to separate local variables and fields from public.


More information about the dba-VB mailing list