What Are The Drone Anti-jamming Systems Technology?
Hidden Facts of .NET Language Gems
1. By Abhishek Sur
Website: www.abhisheksur.com
Email : contact@abhisheksur.com
2. .NET Infrastructure
User Interface Services Data Access
ASP.NET
Windows Windows Windows
(Web Forms, Entity
Presentation Communication Workflow ADO.NET
MVC, Dynamic Framework
Foundation Foundation Foundation
Data)
Win Forms Data Services LINQ to SQL
Cloud
(ODATA)
Core
Objects Generics LINQ Dynamic Async
Base Class Library
Common Language Runtime
4. What are loops ?
A repetition of instructions ?
A logical jump in code
Or a representation of GoTo with a condition…
Types of Loops
While
do-while
for
goto ?... Lets take an example
5. Represented by IEnumerable and IEnumerator
(which is not a collection)
Ability to Pause – Resume a method.
foreach is a syntactic sugar to iterate over an
iterator.
Yield is used to generate an iterator
8. Delegates
Delegates are special types
Delegate points to Methods
MulticastDelegates maintains an Invocation
List
Events
Events are Wrappers to Delegates
Cleaner pattern to handle Delegates
Allows components to subscribe to it by
passing event handlers.
10. Generics
Type as Template
Constraint on Generic Types
It can be applied on Types, Method, Delegates
etc.
Variance is supported
Extension Methods
Extend your predefined Types without
inheritance
Uses ExtensionAttribute to identify extension
method.
12. Anonymous Language Object
Object can exist in language without name
Cleaner codebase.
Anonymous methods are used as Closures.
We use delegate to refer anonymous methods
and var for types.
LINQ
Search inside Managed objects
Simple projection, selection, grouping, joins
and many more…
14. Dynamic in .NET 4.0
CLR is mostly static type
◦ Compile time type checking
DLR added dynamism to .NET
◦ Run time type checking
Object – Static type, base class
var – is ALSO static type, compiler inferred
dynamic – Evaluation deferred
Expandable objects
16. New Asynchronous Pattern
Contextual async & await pattern simplifies
complex Threading model or existing pattern
of coding
Async is not about Concurrency but rather it is
truly asynchrony.
It can easily plugged in without changing the
logic.
Compiler generates state machine to resume
methods