What useful minor C # 4.0 features can you list?
There are many new core features in C # 4.0, such as dynamic type, covariance and contravariance, named arguments, etc.
But C # 4.0 contains new minor (but useful) changes such as TryParse
a method for TimeSpan, Enum, Guid
data types String.IsNullOrWhiteSpace
, System.IO.Stream.CopyTo
etc.
What other minor and useful features of C # 4.0 can you list?
a source to share
You need to distinguish between language features and framework features. C # 4.0 lists the new features you added.
For .NET Framework 4, the list is long. Some of the more interesting and / or commonly used ones:
- Managed Extensibility Framework
- BigInteger and Complex types.
- Lazy <T>
- ASP.NET improvements
- Better support for parallel computing , including the new Tasks namespace ("light" threads) and Parallel LINQ.
Below is a comprehensive list . It is also interesting to read the list of deprecated types in the new version.
a source to share