Hidden Features of C#
-
SalarSoft wrote:
There are keywords that are not documented.
Tried reading the language specs? That documents them. I had a quick look at the StackOverflow link - if these are hidden features they can't have been looking at anything beyond C# in 5 :laugh: minutes.
Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis The only valid measurement of code quality: WTFs/minute.
Actually,, undocumented keywords do exist in c#. They are undocumented as MS don't want us to use them (e.g. there is a high potential for a visit from the FU Fairy). See http://davesbox.com/archive/2008/12/29/documenting-undocumented-features.aspx[^]
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
Actually,, undocumented keywords do exist in c#. They are undocumented as MS don't want us to use them (e.g. there is a high potential for a visit from the FU Fairy). See http://davesbox.com/archive/2008/12/29/documenting-undocumented-features.aspx[^]
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^]Keith Barrow wrote:
undocumented keywords
That looks like an oxymoron - but that's a debate about semantics. There are identifiers, such as __reftype, that act as though they are keyword in .Net but are not specified as keywords in the C# language. These are implementation details so may not be 'keywords' in e.g. Mono. I don't know of a better way to describe such identifiers than 'undocumented keywords' but the phrase leaves me with bad taste - rather like beetroot. :)
Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis The only valid measurement of code quality: WTFs/minute.
-
Hidden Features of C# Personally I like ?? operator and started using it since then:
private IList<Foo> _foo;
public IList<Foo> ListOfFoo
{ get { return _foo ?? (_foo = new List<Foo>()); } }I think this is not hidden features .. most of C# developers already know this and this is available everywhere.
-
I think this is not hidden features .. most of C# developers already know this and this is available everywhere.
-
RTFM is done for C#2 and upgraded for C#3 and 4, but still seems I missed some features during upgrade! it happens ;P
What is RTFM :cool::
--- With regards... The nk.