DCSIMG
CLR 4 - Bnaya Eshet

Bnaya Eshet

Disclaimer

Browse by Tags

All Tags » CLR 4 (RSS)
Enum.HasFlag: good or bad?
Enum.HasFlag: good or bad? .NET 4 give us nice elegant way of checking whether [Flags] enums contain a value.   assuming that we have the following enum : Code Snippet public enum MyEnum { None = 0, A = 1, B = 2, C = 4, D = 8 } we can use the bitwise for checking whether instantiation of the enum contain a value, as shown in the next snippet: Code Snippet var options = MyEnum .A | MyEnum .B; if ((options & MyEnum .A) == MyEnum .A) { // Do something } .NET 4 come with elegant syntax which...
Rx - for beginners (part 14): time based buffering
Rx - for beginners (part 14): time based buffering this post is the 14th in a series of posts about the new Reactive Framework ( Rx ). the series TOC can found here . in this post we will focus on the BufferWithTime operator.   the code for this post available here .   What does BufferWithTime operator do? the buffer with time operator is buffering values that occurs within specific time windows , and then publish the buffered values whenever the time period ends .   Marble diagram...
MEF for Beginner (Deployment Catalog) - part 12
MEF for Beginner (Deployment Catalog) - part 12   this is the 12th post of the MEF for Beginner series, the series TOC is available here . this post will focus on Deployment Catalog .   the code sample for this post can be found here .     What is MEF Deployment Catalogs? the deployment catalog is actually a redesign of the older package catalog . it enable to load parts from xap packages a-synchronically.   Code sample the following code sample depend on 2 assembly that...
Rx - for beginners (part 12): RxJs
this post is the 11th in a series of posts about the new Reactive Framework ( Rx ). the series TOC can found here . in this post we will focus on Rx for JavaScript .   the recently the Rx team release JavaScript library that capable to get observable stream from events.   for example the syntax for mouse move event will be: var mouseMove = Rx.Observable.FromJQueryEvent($(document), "mousemove" );   all you have to do in order of using this library is to rx.js which is less...
Recommendation
Recommendation   this is a post recommendation about using Rx framework with WPF events , I'm recommending this post from bobby's blog , the post is demonstrating the use of creating observable stream from WPF event. it is a short post with nice little code sample . bobby did a real good job by wrapping the observable event ( Observable.FromEvent ) into more human readable format (using T4 template).
Rx - for beginners (part 10): Concat expression
Rx - for beginners (part 10): Concat expression this post is the 10th in a series of posts about the new Reactive Framework ( Rx ). the series TOC can found here . in this post we will focus on the Concat expression.   the code for this post can be download from here .   What does it do? the Concat expression is used to concatenate one Observable stream into the end of another Observable stream. once the first Observable stream is completed the the concat stream will be immediate subscribed...
New release of Rx
New release of Rx is available for download. the Rx team has new release for .NET 3.5, .NET 4.0 RC, and Silverlight 3. you can download the library from here .   the release includes some API changes, some APIs has moved into different assemblies, performance and bug fixes.   Highlights Moved IObservable & IObserver to seperate assembly: System.Observable.dll . Moved Schedulers to System.CoreEx.dll . Moved schedulers to System.Concurrency . Added schedulers to subjects . Removed deadlocks...
Rx - for beginners (part 8): Combine Latest expression
Rx - for beginners (part 8): Combine Latest expression this post is the 8th in a series of posts about the new Reactive Framework ( Rx ). the series TOC can found here .   in this post we will focus on the Combine Latest expression. the code for this post can be download from here .   What does it do? like the zip expression the Combine Latest expression is used to synchronize 2 IObservable streams into single IObservable stream. unlike the zip expression the Combine Latest doesn't...
Rx - for beginners (part 7): Zip expression
Rx - for beginners (part 7): Zip expression this post is the 7th in a series of posts about the new Reactive Framework ( Rx ). the series TOC can found here .   in this post we will focus on the Zip expression. the code for this post can be download from here .   What does it do? the zip expression is used to synchronize 2 IObservable streams into single IObservable stream.   How does it do it? it is taking the first observed value on either of the stream and wait for value from the...
Rx - for beginners (part 5): marble diagrams, select and where
Rx - for beginners (part 5): marble diagrams, select and where this post is the 5th in a series of posts about the new Reactive Framework ( Rx ). the series TOC can found here .   this post will focus on marble diagrams which is used for visualizing IObservable stream . on this post we will visualize the select and where clause, while in the upcoming posts we will discuss other operations that can be used to upon IObservable streams .   the code sample for this post is available here ....
Rx - for beginners (part 4): anonymous observer handler
Rx - for beginners (part 4): anonymous observer handler this post is the 4th in a series of posts about the new Reactive Framework ( Rx ). the series TOC can found here .   this post will focus on anonymous observer handler. the code sample for this post can be download from here .   Anonymous Observer as we mention on the previous posts, IObserver is used as a callback interface which can be subscribe to the IObservable , but this is a bit of overkill, when what we subscribe is relatively...
MEF Preview 9 released
MEF Preview 9 was released   MEF   preview 9 changes will be reflected the in the release of .NET 4.0 and Silverlight 4.0 .   except from bug fixing, there was some changes to the API , most of the changes is related to  System.ComponentModel.Composition.Initilization.dll , which is not yet available only for none Silverlight application :-(   here is a short list of API changes: PackageCatalog were brought back, and changed it name to DeploymentCatalog . PartCreator was...
Rx - Reactive Extension – for beginners (part 2)
Rx - Reactive Extension (part 2) this post is the second in a series of posts about the new Reactive Framework ( Rx ). the previous post discuss the concept of Rx (Reactive Framework Extension) , this post will focus on some basic practice.   In this post we will create small WPF application that got images from different image feeds providers (the source code can be found here ).   Application layout The application layout is described in the following diagram.   the image data will...
Rx - Reactive Extension – for beginner (part 1)
Rx - R eactive E xtension (part 1) this post is the first in a series of posts about the new Reactive Framework ( Rx ).   What is the Reactive Framework Extension? the Rx formalize the push based programming pattern. it is dealing with event like collection , in manner that can be describe as the mirroring of IEnumerable<T> .   How does it mirror the IEnumerable<T>? the Rx framework most fundamental interface are, IObservable<T> which is mirroring IEnumerable<T>...
Catalogs (code cartoon)
Catalogs (code cartoon) catalog are search boundary for the composition container .         you can read more about MEF on MEF for beginner series, the TOC is available here   תגים של Technorati:‏ Extensibility , MEF , Composition , catalogs
More Posts Next page »