.net 3.5 - Lambda expression example with System.Action<T> for a MEF case? -


I'm new to the system. Action & lt; T & gt; And Lambda Expression is a matter here that I want to use.

  using the system; Using System.ComponentModel.Composition; Public Class Micalos {Public Stabilizing Container Container = New Composite Container (); Private Zero Start (Action & lt; CompositonBatch & gt; Action) {} Public MyClass () {CompositionBatch Batch = Faucet; Inititialize (x = & gt; {// Create catalog instance: Examples like Example 1 and Example 2 ... ... X. Advert (Example 1); X. Advert (Example 2); Batch = X;}); // At this point will be batch, no-zero-value parts will be added? // The following code is making the batch for the container container. Processed (batch); Basically, method start (Action & lt; CompositionBatch & gt; action) is used to start an emof catalog parts with a compositionbatch example, which adds all the import and export parts. After that, the batch is made to fix all the d mapping from the container.  

I'm not sure if I use the system. Action & lt; T & gt; And the Lambda expression is right here. Can creation of this example (CTRO) be made on-fly? Should I put anything in the system to start? Or should I start as a representative (instead of) (if I think I still need to bind it in a method)? The problem here is that you never call your Lambda expression. To do this, you must Initialize () method is required to change:

  Private zeros start (action & lt; compositonbatch & gt; action) {action (new structure));}  

Note that how you actually call the function near the function, in addition, a typo (initialize) in your constructor And I do not see where instance1 and instance2 are declared.

But I'm not sure that you will actually get anything here, along with it warned that this will stop one on the batch variable.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -