You are joking, right?
It calls an method on the LinqValueCalculator instance and passes it a collection of products.
I don't mean to sound rude here, but if you don't understand that simple code, then seriously you need to go right back to first principles and review the basics of C# coding - you aren't ready to start looking at complex stuff yet, and certainly nothing that involves lambda expressions.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
I suggest you start by reading this CodeProject article: [^].
You use these interfaces when the standard built-in iterators like 'foreach (which use these interfaces !) do not provide the functionality you wish to have in sequential access of a Collection of objects. Or, as in this example, to enable a Class which is not natively enumerable to act like it is by exposing a private collection defined in the Class.
For example, if you implement a Class that contains some form of custom Collection, which is private to the Class, but you want to be able to use 'foreach on an 'instance of that Class, and have the 'foreach loop move in sequence through the private custom-collection, you can have the Class implement (inherit from) IEnumerable, and then have the Class instance expose the Enumerator of the private Collection by making the private Collection's Enumerator be accessed in the implementation of the required 'GetEnumerator method.
Sound complex ? It's really not:
//publicclass SomeClass: IEnumerable
private List<string> ListOStrings;
ListOStrings = new List<string>
public IEnumerator GetEnumerator()
// now you can access the private List like this: in a method or EventHandler:
SomeClass someClass = new SomeClass();
foreach (var str in someClass)
I am developing an addin for AutoCAD using c# with a WPF xaml dockable pane, I would like to sometimes show a webpage in the pane so I am using the WebBrowser, however it is not displaying the HTML5 content well as it defaults to IE7. using FEATURE_BROWSER_EMULATION I should be able to point it to using IE11 if installed, however setting the application that the addin is loaded into in the registry isnt working. I also tried the dll file that my addin creates and this doesnt work either. Is there a way to tell my WebBrowser in my dll within acad.exe to use IE11?
The current search i have implemented into my program is limited to specific tables in the database. How do i go about adding the capabilities of searching all the tables within a database? In addition i would like to offer filters using check boxes to narrow the search parameters.
A JOIN would allow the search across multiple tables but the following line of code limits the search because of the "TestDescription='"
I'm trying to email images to my tumblr blog. I can go into my live account, create an email, attach an image and send it -- this works fine and post to my tubmlr blog fine. However, when I try to to do the same thing in my C# application nothing happens, no error, and nothing post to tumblr. I was hoping somebody could give me some insight as to what live.com does differently than me when sending email. My code is below, thanks in advanced.