The main problem is that people don't think about any of that when they think about .Net. They think about that festering bog of evil and spaghetti code that is WebForms.
The main problem is that people don't think about any of that when they think about .Net. They think about that festering bog of evil and spaghetti code that is WebForms.
1) use the advanced features and not tripping themselves
2) use it frequently
3) and got a lot of productivity boost out of those features
I would imagine most people will download 3rd-party libraries (open source or not) and tools to become productive. Not so much on the C# advanced features.
Not to knock you down but my experience with Java is that libraries typically help a lot as opposed to syntax.
If you just want to see a piece of code in C# that would have to be written totally differently in Java to be readable (unless you use some quite abstract third-party libraries like Guava to help) I picked one of my Stack Overflow answers at random: http://stackoverflow.com/questions/2966592/how-to-refactor-t...
... and yes, as a Java developer, I use Guava once in a while and I do JavaScript as part of my job as well and I do appreciate first-class function.
Typically the problems that functional features solve are filtering and transformation and yet most often than not I happen to solve them at the SQL layer (be it JPQL or straight up SQL).
var rules =
AppDomain.CurrentDomain.GetAssemblies
.SelectMany(a => a.GetTypes())
.Where(t => typeof(ISecurityRule).IsAssignableFrom(t))
.Select(t => Activator.CreateInstance() as ISecurityRule)
.OrderBy(r => r.Priority);
You can then run a chain of responsibility by writing var allowed = rules.First(r => r.Check(someObject) != null);
//Check returns null when a rule isn't relevant to the object being checked
it's pretty sweet for metaprogramming when you can run queries against your codebaseJava has AOP and extensively use Annotations (Attributes in .NET) and the approach there is definitely heavier than what you wrote above.
So to answer your question, the odds are very good! :)