Use of yield in C#

here Normally, when we need to fetch the items from a collection we might create a temporary list to hold the retrieved items and return. But the use of yield, we can get a collection without the use of the temporary collection. Following is the simple example to retrieve list using return a temporary list. Here tmplist is used to store…

berlin dating seiten Continue Reading

Use Indexer in C#

rencontres science et humanisme 2015 Indexer helps to make an interface to the class easy way and get so many benefits from that we will understand indexer with an example. We are using classes with an aggregated or a composed collection of objects. For an example here, there are two classes Customer and Address. Customer has addresses and so we have to initialize objects of…

follow link Continue Reading

Create custom view engine in MVC application

go here There are various third-party view engines available like Nhaml (pronounced enamel), spark, Brail, nVelocity but the most famous one is Razor used .cshtml and .vbhtml files to recognize views to render as simple HTML. You can create your own view engine and even use that with other view engines in one application. To use your custom view engine, you have…

source url Continue Reading

Send Bulk Emails Using Multi-Threading in .Net

http://orpheum-nuernberg.de/?bioede=bin%C3%A4re-optionen-als-anf%C3%A4nger&362=dd If you use simple method call in for each loop to send bulk emails, for example, 1000 emails then you have been stuck in your application because of a single thread operated to send emails which are currently using the resources and thread of the application so to get the benefit of multi-threading is possible in .Net. To use multi-threading…

maroon 5 singer dating victoria's secret Continue Reading

Send Email Asynchronously in .Net

If you use synchronous mode to send an email then the process for to sending email start by calling a method, then the application has to wait to complete and that time application is blocked or halted. In contrast, asynchronous mode to call the method that you define as background and that method, return to an application immediately no matter…

Continue Reading

Dynamic C# with using ExpandoObject and ElasticObject

C# Dynamic It is the class that implements DLR(Dynamic Language Runtime) Interface and now you have a question that what is DLR? The dynamic language runtime (DLR) is a runtime environment that adds a set of services for dynamic languages to the common language runtime (CLR). The DLR makes it easier to develop dynamic languages to run on the .NET…

Continue Reading

Send Mail Using .Net with Gmail or Ymail Account

Here is a small code for sending an email from ASP.NET 2.0 page, using the namespace System.net.mail and a Gmail account. Note: We can build this email form AJAX based, by putting the content in an UpdatePanel control, and add the button “send” as a trigger.

High Performance Munq IOC Container For Asp.Net MVC And Web Form

IOC is a pattern which decouples the use of an interface from the concrete implementation of that interface. By eliminating this coupling:  The code can be tested by using special test implementations of the interface.  Fewer DLLs need to be deployed on each tier of a multi-tiered deployment.  Project compilation may be sped up as there are fewer project dependencies.…

Continue Reading